Remove unused SonarQube configs and cache setup.

Cleaned up commented-out SonarQube configuration from `pom.xml` and removed redundant cache settings in `.gitlab-ci.yml`. This simplifies the build configuration and eliminates unused or unnecessary definitions.
This commit is contained in:
2025-04-08 18:43:28 +02:00
parent 8fdb7887cf
commit 56080236ef
2 changed files with 5 additions and 16 deletions
+5 -9
View File
@@ -43,10 +43,6 @@ on_commits:
- echo "Running tests..." - echo "Running tests..."
- cd ${GITLAB_CLONE_DIR} - cd ${GITLAB_CLONE_DIR}
- mvn test - mvn test
cache:
key: "${CI_JOB_NAME}"
paths:
- .maven-cache
only: only:
- /^feature.*$/ - /^feature.*$/
- merge_request - merge_request
@@ -59,12 +55,12 @@ sonarcloud_scan:
image: image:
name: sonarsource/sonar-scanner-cli:latest name: sonarsource/sonar-scanner-cli:latest
entrypoint: [ "" ] entrypoint: [ "" ]
cache:
key: "${CI_JOB_NAME}"
paths:
- .maven-cache
script: script:
- sonar-scanner -Dsonar.projectKey=${SONAR_PROJECT_KEY} -Dsonar.organization=${SONAR_ORGANIZATION} -Dsonar.token=${SONAR_TOKEN} -Dsonar.exclusions=docs/** -Dsonar.java.binaries=target/classes - sonar-scanner -Dsonar.projectKey=${SONAR_PROJECT_KEY} \
-Dsonar.organization=${SONAR_ORGANIZATION} \
-Dsonar.token=${SONAR_TOKEN} \
-Dsonar.exclusions=docs/** \
-Dsonar.java.binaries=target/classes
only: only:
- merge_requests - merge_requests
- develop - develop
-7
View File
@@ -21,13 +21,6 @@
<project.build.sourceEncoding>${file.encoding}</project.build.sourceEncoding> <project.build.sourceEncoding>${file.encoding}</project.build.sourceEncoding>
<project.reporting.outputEncoding>${file.encoding}</project.reporting.outputEncoding> <project.reporting.outputEncoding>${file.encoding}</project.reporting.outputEncoding>
<!-- sonarQube cloud -->
<!-- <sonar.organization>th-schwarz</sonar.organization>-->
<!-- <sonar.host.url>https://sonarcloud.io</sonar.host.url>-->
<!-- <sonar.sourceEncoding>${file.encoding}</sonar.sourceEncoding>-->
<!-- <sonar.exclusions>docs/**/*</sonar.exclusions>-->
<!-- <sonar.test.exclusions>src/test/java/**/*</sonar.test.exclusions>-->
<!-- checkstyle --> <!-- checkstyle -->
<checkstyle.version>10.21.3</checkstyle.version> <checkstyle.version>10.21.3</checkstyle.version>
<checkstyle.plugin.version>3.6.0</checkstyle.plugin.version> <checkstyle.plugin.version>3.6.0</checkstyle.plugin.version>