Skip to content

Commit 7bb421e

Browse files
committed
Cleanup configuration of sonar-maven-plugin
This change updates the plugin from 5.0.0.4389 to 5.1.0.4751 and also moves part of its configuration from the Jenkinsfile to the parent pom. In order to avoid the "'sonar.java.binaries' is empty" warning, this property is now initialized with the project-relative "target/classes" path.
1 parent 5584d36 commit 7bb421e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Jenkinsfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,10 @@ def void mvn() {
143143
--no-transfer-progress \
144144
-DapiBaselineTargetDirectory=${WORKSPACE} \
145145
-Dmaven.repo.local=$WORKSPACE/.m2/repository \
146-
-Dproject.build.sourceEncoding=UTF-8 \
147146
-Dbuild.id=${BUILD_TIMESTAMP} \
148147
-Dcommit.id=$GIT_COMMIT \
149148
-Dbuild.type=$BUILD_TYPE \
150149
-Dorg.eclipse.justj.p2.manager.build.url=$JOB_URL \
151-
-Dsonar.exclusions=**/.tycho-consumer-pom.xml \
152-
-Dsonar.projectKey=gef-classic \
153-
-Dsonar.organization=eclipse \
154150
clean \
155151
verify \
156152
sonar:sonar

pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
<jruby.version>9.4.5.0</jruby.version>
2323
<target-platform>../target-platform/GEF_classic.target</target-platform>
2424
<execution-environment>JavaSE-21</execution-environment>
25+
<!-- SonarQube configuration -->
26+
<sonar.exclusion>**/.tycho-consumer-pom.xml</sonar.exclusion>
27+
<sonar.projectKey>gef-classic</sonar.projectKey>
28+
<sonar.java.binaries>${project.build.outputDirectory}</sonar.java.binaries>
29+
<sonar.organization>eclipse</sonar.organization>
2530
</properties>
2631

2732
<build>
@@ -315,7 +320,7 @@
315320
<plugin>
316321
<groupId>org.sonarsource.scanner.maven</groupId>
317322
<artifactId>sonar-maven-plugin</artifactId>
318-
<version>5.0.0.4389</version>
323+
<version>5.1.0.4751</version>
319324
</plugin>
320325
</plugins>
321326
</pluginManagement>

0 commit comments

Comments
 (0)