Skip to content

Commit 839698a

Browse files
committed
upgrade non-retrocomptibel + upgrade version from 2.1 to 2.2
1 parent 14397ff commit 839698a

3 files changed

Lines changed: 33 additions & 21 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313

1414
- [#69](https://github.com/green-code-initiative/creedengo-java/issues/69) correction of NullPointer in GCI79 rule + technical refactoring of GCI79
1515
- update integration tests system to use the new component "creedengo-integration-test"
16+
- compatibility updates for SonarQube up to 26.2.0
17+
- upgrade internal libraries versions - non retro-compatibility upgrades
1618

1719
### Deleted
1820

README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,14 @@ Ready to use binaries are available [from GitHub](https://github.com/green-code-
5757
🧩 Compatibility
5858
-----------------
5959

60-
| Plugin version | SonarQube version | Java version |
61-
|----------------|----------------------|------------------------------------------------------------------------------------------------|
62-
| 1.6.+ | 9.4.+ LTS to 10.6.0 | 11 / 17 |
63-
| 1.7.+ | 9.9.+ LTS to 10.6.0 | [17](https://docs.sonarsource.com/sonarqube/9.9/requirements/prerequisites-and-overview/#java) |
64-
| 2.+ | 9.9.0 LTS to 25.12.0 | [17](https://docs.sonarsource.com/sonarqube/9.9/requirements/prerequisites-and-overview/#java) |
60+
| Plugin version | SonarQube version | Java version |
61+
|----------------|-----------------------|--------------|
62+
| 1.6.+ | 9.4.+ LTS to 10.6.0 | 11 / 17 |
63+
| 1.7.+ | 9.9.+ LTS to 10.6.0 | 17 |
64+
| 2.0.+ / 2.1.+ | 9.9.0 LTS to 25.12.0 | 17 |
65+
| 2.2.+ | 25.1.+ | 17 |
66+
| 2.2.+ | 25.2.+ LTS to 25.12.+ | 17 / 21 |
67+
| 2.2.+ | 26.1.+ LTS to 26.2.+ | 21 |
6568

6669
> Compatibility table of versions lower than 1.4.+ are available from the
6770
> main [creedengo repository](https://github.com/green-code-initiative/creedengo-rules-specifications#-plugins-version-compatibility).

pom.xml

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>org.green-code-initiative</groupId>
66
<artifactId>creedengo-java-plugin</artifactId>
7-
<version>2.1.3-SNAPSHOT</version>
7+
<version>2.2.0-SNAPSHOT</version>
88

99
<packaging>sonar-plugin</packaging>
1010

@@ -60,41 +60,48 @@
6060
<sonar.plugin.api.version>13.0.0.3026</sonar.plugin.api.version>
6161

6262
<!-- Version of `sonar-java-plugin` that `creedengo-java-plugin` depends on -->
63-
<!-- LAST version compatible with SonarQube 9.9.0 AND 25.9.0 -->
64-
<sonarjava.version>8.9.3.40165</sonarjava.version>
65-
<!-- LAST version compatible with SonarQube 25.9.0 but NOT with 9.9.0 -->
66-
<!-- <sonarjava.version>8.18.0.40025</sonarjava.version>-->
63+
<sonarjava.version>8.23.0.42096</sonarjava.version>
6764

68-
<sonar-analyzer-commons.version>2.18.0.3393</sonar-analyzer-commons.version>
65+
<sonar-analyzer-commons.version>2.21.0.4626</sonar-analyzer-commons.version>
6966

70-
<sonar-packaging.version>1.23.0.740</sonar-packaging.version>
67+
<sonar-packaging.version>1.25.1.3002</sonar-packaging.version>
7168

7269
<!-- Version of creedengo rules specifications implemented by this plugin -->
73-
<creedengo-rules-specifications.version>2.6.7</creedengo-rules-specifications.version>
70+
<creedengo-rules-specifications.version>2.7.1</creedengo-rules-specifications.version>
7471

7572
<!-- URL of the Maven repository where sonarqube will be downloaded -->
7673
<test-it.orchestrator.artifactory.url>https://repo1.maven.org/maven2</test-it.orchestrator.artifactory.url>
7774
<!-- You can override this property to keep SonarQube instance running and to manually use it -->
7875
<test-it.sonarqube.keepRunning>false</test-it.sonarqube.keepRunning>
7976

77+
<!-- KO -->
78+
<!-- <test-it.sonarqube.version>9.8.0.63668</test-it.sonarqube.version>-->
79+
8080
<!-- Version of `sonarqube` used by integration tests (you can override this value to perform matrix compatibility tests) -->
81+
<!-- OK JDK17 but KO with JDK21 -->
82+
<!-- KO v2.2.x -->
8183
<!-- <test-it.sonarqube.version>9.9.0.65466</test-it.sonarqube.version>-->
8284
<!-- <test-it.sonarqube.version>9.9.8.100196</test-it.sonarqube.version>-->
8385
<!-- <test-it.sonarqube.version>10.1.0.73245</test-it.sonarqube.version>-->
8486
<!-- <test-it.sonarqube.version>10.1.0.73491</test-it.sonarqube.version>-->
8587
<!-- <test-it.sonarqube.version>10.2.0.77647</test-it.sonarqube.version>-->
8688
<!-- <test-it.sonarqube.version>10.7.0.96327</test-it.sonarqube.version>-->
8789
<!-- <test-it.sonarqube.version>24.12.0.100206</test-it.sonarqube.version>-->
90+
91+
<!-- OK JDK17 but KO with JDK21 - v2.2.x INIT -->
8892
<!-- <test-it.sonarqube.version>25.1.0.102122</test-it.sonarqube.version>-->
93+
94+
<!-- OK JDK 17 and JDK 21 -->
8995
<!-- <test-it.sonarqube.version>25.2.0.102705</test-it.sonarqube.version>-->
9096
<!-- <test-it.sonarqube.version>25.3.0.104237</test-it.sonarqube.version>-->
9197
<!-- <test-it.sonarqube.version>25.4.0.105899</test-it.sonarqube.version>-->
9298
<!-- <test-it.sonarqube.version>25.5.0.107428</test-it.sonarqube.version>-->
9399
<!-- <test-it.sonarqube.version>25.9.0.112764</test-it.sonarqube.version>-->
94-
<test-it.sonarqube.version>25.12.0.117093</test-it.sonarqube.version>
100+
<test-it.sonarqube.version>25.12.0.117093</test-it.sonarqube.version>
95101

96-
<!-- 26.1 KO because of compilation error : 26.1 was compiled with JDK 21-->
102+
<!-- OK but only with JDK 21 -->
97103
<!-- <test-it.sonarqube.version>26.1.0.118079</test-it.sonarqube.version>-->
104+
<!-- <test-it.sonarqube.version>26.2.0.119303</test-it.sonarqube.version>-->
98105

99106
<!-- Version of `sonar-java-plugin` used by integration tests (you can override this value to perform matrix compatibility tests) -->
100107
<test-it.sonarjava.version>${sonarjava.version}</test-it.sonarjava.version>
@@ -169,14 +176,14 @@
169176
<dependency>
170177
<groupId>org.junit.jupiter</groupId>
171178
<artifactId>junit-jupiter</artifactId>
172-
<version>5.13.4</version>
179+
<version>5.14.3</version>
173180
<scope>test</scope>
174181
</dependency>
175182

176183
<dependency>
177184
<groupId>org.mockito</groupId>
178185
<artifactId>mockito-junit-jupiter</artifactId>
179-
<version>5.19.0</version>
186+
<version>5.21.0</version>
180187
<scope>test</scope>
181188
</dependency>
182189

@@ -203,7 +210,7 @@
203210
<plugin>
204211
<groupId>org.apache.maven.plugins</groupId>
205212
<artifactId>maven-compiler-plugin</artifactId>
206-
<version>3.14.0</version>
213+
<version>3.15.0</version>
207214
</plugin>
208215
<plugin>
209216
<groupId>org.apache.maven.plugins</groupId>
@@ -213,7 +220,7 @@
213220
<plugin>
214221
<groupId>org.jacoco</groupId>
215222
<artifactId>jacoco-maven-plugin</artifactId>
216-
<version>0.8.13</version>
223+
<version>0.8.14</version>
217224
<executions>
218225
<execution>
219226
<id>prepare-agent</id>
@@ -254,7 +261,7 @@
254261
<!-- plugin to generate a unique build number for sonar-packaging-maven-plugin : usage of buildNumber variable -->
255262
<groupId>org.codehaus.mojo</groupId>
256263
<artifactId>buildnumber-maven-plugin</artifactId>
257-
<version>3.2.1</version>
264+
<version>3.3.0</version>
258265
<executions>
259266
<execution>
260267
<phase>validate</phase>
@@ -311,7 +318,7 @@
311318
<plugin>
312319
<groupId>org.apache.maven.plugins</groupId>
313320
<artifactId>maven-dependency-plugin</artifactId>
314-
<version>3.8.1</version>
321+
<version>3.10.0</version>
315322
<executions>
316323
<execution>
317324
<id>copy</id>

0 commit comments

Comments
 (0)