Skip to content

Commit 7ec0350

Browse files
authored
Bump dependencies versions (#36)
* Remove logback dependency * use java 11 instead of java 8 * Bump to plugin api 8.9 * remove more logback dependencies * mockito + commons * ant + guava bumping versions * maven plugins bumped
1 parent accd2f9 commit 7ec0350

File tree

5 files changed

+30
-43
lines changed

5 files changed

+30
-43
lines changed

community-rust-checks/pom.xml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@
4242
<groupId>org.assertj</groupId>
4343
<artifactId>assertj-core</artifactId>
4444
</dependency>
45-
<dependency>
46-
<groupId>ch.qos.logback</groupId>
47-
<artifactId>logback-classic</artifactId>
48-
<scope>test</scope>
49-
</dependency>
5045
<dependency>
5146
<groupId>com.google.guava</groupId>
5247
<artifactId>guava</artifactId>
@@ -61,8 +56,8 @@
6156
<groupId>org.apache.maven.plugins</groupId>
6257
<artifactId>maven-compiler-plugin</artifactId>
6358
<configuration>
64-
<source>1.8</source>
65-
<target>1.8</target>
59+
<source>11</source>
60+
<target>11</target>
6661
</configuration>
6762
</plugin>
6863
</plugins>

community-rust-frontend/pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
<!-- packaged with the plugin -->
3838
<groupId>commons-lang</groupId>
3939
<artifactId>commons-lang</artifactId>
40-
<version>2.6</version>
4140
</dependency>
4241
<dependency>
4342
<groupId>org.mockito</groupId>
@@ -60,8 +59,8 @@
6059
<groupId>org.apache.maven.plugins</groupId>
6160
<artifactId>maven-compiler-plugin</artifactId>
6261
<configuration>
63-
<source>1.8</source>
64-
<target>1.8</target>
62+
<source>11</source>
63+
<target>11</target>
6564
</configuration>
6665
</plugin>
6766
</plugins>

community-rust-plugin/pom.xml

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@
2222
<dependency>
2323
<groupId>org.sonarsource.sonarqube</groupId>
2424
<artifactId>sonar-plugin-api</artifactId>
25-
<version>${sonar.version}</version>
26-
<scope>provided</scope>
25+
</dependency>
26+
<dependency>
27+
<groupId>org.sonarsource.sonarqube</groupId>
28+
<artifactId>sonar-plugin-api-impl</artifactId>
2729
</dependency>
2830
<dependency>
2931
<groupId>${project.groupId}</groupId>
@@ -46,42 +48,29 @@
4648
<artifactId>slf4j-api</artifactId>
4749
<version>1.7.30</version>
4850
</dependency>
49-
<dependency>
50-
<groupId>ch.qos.logback</groupId>
51-
<artifactId>logback-core</artifactId>
52-
<version>1.2.3</version>
53-
</dependency>
54-
<dependency>
55-
<groupId>ch.qos.logback</groupId>
56-
<artifactId>logback-classic</artifactId>
57-
<version>1.2.3</version>
58-
</dependency>
5951
<!-- https://mvnrepository.com/artifact/org.sonarsource.analyzer-commons/sonar-analyzer-commons -->
6052
<dependency>
6153
<groupId>org.sonarsource.analyzer-commons</groupId>
6254
<artifactId>sonar-analyzer-commons</artifactId>
63-
<version>1.14.0.681</version>
6455
</dependency>
6556
<dependency>
6657
<groupId>org.reflections</groupId>
6758
<artifactId>reflections</artifactId>
68-
<version>0.9.12</version>
59+
<version>0.10.2</version>
6960
</dependency>
7061
<dependency>
7162
<groupId>com.fasterxml.woodstox</groupId>
7263
<artifactId>woodstox-core</artifactId>
73-
<version>5.2.0</version>
64+
<version>6.2.7</version>
7465
</dependency>
7566
<dependency>
7667
<groupId>junit</groupId>
7768
<artifactId>junit</artifactId>
78-
<version>${junit.version}</version>
7969
<scope>test</scope>
8070
</dependency>
8171
<dependency>
8272
<groupId>org.sonarsource.sslr</groupId>
8373
<artifactId>sslr-testing-harness</artifactId>
84-
<version>${sslr.version}</version>
8574
<scope>test</scope>
8675
</dependency>
8776
<dependency>
@@ -171,7 +160,7 @@
171160
<plugin>
172161
<groupId>de.thetaphi</groupId>
173162
<artifactId>forbiddenapis</artifactId>
174-
<version>2.7</version>
163+
<version>3.2</version>
175164
<executions>
176165
<execution>
177166
<goals>

community-rust-plugin/src/test/java/org/elegoff/plugins/communityrust/coverage/lcov/LCOVSensorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private InputFile inputFile(String relativePath, InputFile.Type type) throws Fil
7878
.setType(type)
7979
.build();
8080

81-
inputFile.setMetadata(new FileMetadata().readMetadata(new FileInputStream(inputFile.file()), StandardCharsets.UTF_8, inputFile.absolutePath()));
81+
inputFile.setMetadata(new FileMetadata(s -> {}).readMetadata(new FileInputStream(inputFile.file()), StandardCharsets.UTF_8, inputFile.absolutePath()));
8282
context.fileSystem().add(inputFile);
8383

8484
return inputFile;

pom.xml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@
3030
<name>Eric Le Goff</name>
3131
<email>[email protected]</email>
3232
</developer>
33+
<developer>
34+
<id>p-fruck</id>
35+
<name>Philipp Fruck</name>
36+
<email>[email protected]</email>
37+
</developer>
3338
</developers>
3439

3540
<modules>
@@ -51,14 +56,13 @@
5156

5257
<properties>
5358
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
54-
<sonar.version>7.9</sonar.version>
55-
<java.version>8</java.version>
59+
<sonar.version>8.9.0.43852</sonar.version>
60+
<java.version>11</java.version>
5661
<sslr.version>1.24.0.633</sslr.version>
5762
<sslr-squid-bridge.version>2.7.1.392</sslr-squid-bridge.version>
58-
<mockito.version>3.6.28</mockito.version>
63+
<mockito.version>3.9.0</mockito.version>
5964
<assertj-core.version>3.19.0</assertj-core.version>
6065
<jacoco.version>0.8.6</jacoco.version>
61-
<logback.version>1.2.3</logback.version>
6266
<maven-surefire-plugin.version>2.19.1</maven-surefire-plugin.version>
6367
<sonar.projectKey>elegoff_sonar-rust</sonar.projectKey>
6468
<sonar.organization>elegoff-1</sonar.organization>
@@ -67,8 +71,8 @@
6771
<sonar.projectVersion>${project.version}</sonar.projectVersion>
6872
<commons.io.version>2.8.0</commons.io.version>
6973
<commons.lang.version>2.6</commons.lang.version>
70-
<junit.version>4.13.1</junit.version>
71-
<sonar-analyzer-commons.version>1.14.1.690</sonar-analyzer-commons.version>
74+
<junit.version>4.13.2</junit.version>
75+
<sonar-analyzer-commons.version>1.21.0.829</sonar-analyzer-commons.version>
7276
</properties>
7377

7478
<dependencyManagement>
@@ -155,15 +159,10 @@
155159
<artifactId>woodstox-core-lgpl</artifactId>
156160
<version>${woodstox.version}</version>
157161
</dependency>
158-
<dependency>
159-
<groupId>ch.qos.logback</groupId>
160-
<artifactId>logback-classic</artifactId>
161-
<version>${logback.version}</version>
162-
</dependency>
163162
<dependency>
164163
<groupId>org.apache.ant</groupId>
165164
<artifactId>ant</artifactId>
166-
<version>1.10.11</version>
165+
<version>1.10.12</version>
167166
</dependency>
168167

169168
<!-- test dependencies -->
@@ -218,7 +217,7 @@
218217
<dependency>
219218
<groupId>com.google.guava</groupId>
220219
<artifactId>guava</artifactId>
221-
<version>30.0-jre</version>
220+
<version>31.0.1-jre</version>
222221
</dependency>
223222

224223

@@ -229,7 +228,12 @@
229228
<version>${sonar.version}</version>
230229
<scope>provided</scope>
231230
</dependency>
232-
231+
<dependency>
232+
<groupId>org.sonarsource.sonarqube</groupId>
233+
<artifactId>sonar-plugin-api-impl</artifactId>
234+
<version>${sonar.version}</version>
235+
<scope>test</scope>
236+
</dependency>
233237
</dependencies>
234238
</dependencyManagement>
235239
<build>

0 commit comments

Comments
 (0)