Skip to content

Commit 03c9b1c

Browse files
committed
Upgrade pom.xml
1 parent 7d499ed commit 03c9b1c

File tree

1 file changed

+71
-59
lines changed

1 file changed

+71
-59
lines changed

pom.xml

Lines changed: 71 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
45
<modelVersion>4.0.0</modelVersion>
56

67
<groupId>fr.cnes.sonar.plugins</groupId>
@@ -56,21 +57,13 @@
5657

5758
<properties>
5859
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
59-
<jdk.version>17</jdk.version>
60-
<jdk.min.version>17</jdk.min.version>
61-
<jdk.max.version>17</jdk.max.version>
6260
<maven.compiler.source>17</maven.compiler.source>
63-
<maven.compiler.target>17</maven.compiler.target>
64-
<sonar.apiVersion>9.8.0.203</sonar.apiVersion>
65-
<sonar.testingHarnessVersion>9.5.0.56709</sonar.testingHarnessVersion>
66-
<sonar.apiImplVersion>9.9.1.69595</sonar.apiImplVersion>
67-
<sonar.sslr-squid-bridge.version>2.6.1</sonar.sslr-squid-bridge.version>
68-
<sonar-packaging-maven-plugin.version>1.21.0.505</sonar-packaging-maven-plugin.version>
69-
<commons-lang.version>3.7</commons-lang.version>
70-
<gson.version>2.8.2</gson.version>
71-
<slf4j.version>1.7.25</slf4j.version>
72-
<junit.version>4.13.2</junit.version>
73-
<jacoco.version>0.8.10</jacoco.version>
61+
<maven.compiler.target>23</maven.compiler.target>
62+
<maven.compiler.release>17</maven.compiler.release>
63+
<surefire.version>3.5.3</surefire.version>
64+
<!-- Matrice: https://github.com/SonarSource/sonar-plugin-api -->
65+
<sonar.plugin.api.version>9.14.0.375</sonar.plugin.api.version>
66+
<sonar.version>9.9.0.65466</sonar.version>
7467
<sonar.pluginKey>icode</sonar.pluginKey>
7568
<sonar.pluginClass>fr.cnes.sonar.plugins.icode.ICodePlugin</sonar.pluginClass>
7669
<sonar.pluginUrl>https://github.com/cnescatlab/sonar-icode-cnes-plugin</sonar.pluginUrl>
@@ -98,35 +91,35 @@
9891
<dependency>
9992
<groupId>org.sonarsource.api.plugin</groupId>
10093
<artifactId>sonar-plugin-api</artifactId>
101-
<version>${sonar.apiVersion}</version>
94+
<version>${sonar.plugin.api.version}</version>
10295
<scope>provided</scope>
10396
</dependency>
10497
<dependency>
10598
<groupId>fr.cnes.icode</groupId>
10699
<artifactId>icode-library</artifactId>
107100
<version>5.1.0</version>
108-
</dependency>
101+
</dependency>
109102
<dependency>
110-
<groupId>commons-lang</groupId>
111-
<artifactId>commons-lang</artifactId>
112-
<version>2.6</version>
103+
<groupId>org.apache.commons</groupId>
104+
<artifactId>commons-lang3</artifactId>
105+
<version>3.17.0</version>
113106
</dependency>
114107
<!-- unit tests -->
115-
<dependency>
108+
<!-- <dependency>
116109
<groupId>org.sonarsource.sonarqube</groupId>
117110
<artifactId>sonar-testing-harness</artifactId>
118-
<version>${sonar.testingHarnessVersion}</version>
111+
<version>${sonar.version}</version>
119112
<scope>test</scope>
120-
</dependency>
113+
</dependency> -->
121114
<dependency>
122115
<groupId>org.sonarsource.sonarqube</groupId>
123116
<artifactId>sonar-plugin-api-impl</artifactId>
124-
<version>${sonar.apiImplVersion}</version>
117+
<version>${sonar.version}</version>
125118
</dependency>
126119
<dependency>
127120
<groupId>junit</groupId>
128121
<artifactId>junit</artifactId>
129-
<version>4.11</version>
122+
<version>4.13.2</version>
130123
<scope>test</scope>
131124
</dependency>
132125
<dependency>
@@ -138,48 +131,80 @@
138131
<dependency>
139132
<groupId>com.thoughtworks.xstream</groupId>
140133
<artifactId>xstream</artifactId>
141-
<version>1.4.18</version>
134+
<version>1.4.21</version>
142135
</dependency>
143136
</dependencies>
144137

145138
<build>
139+
<pluginManagement>
140+
<plugins>
141+
<plugin>
142+
<groupId>org.apache.maven.plugins</groupId>
143+
<artifactId>maven-clean-plugin</artifactId>
144+
<version>3.4.1</version>
145+
</plugin>
146+
<plugin>
147+
<groupId>org.apache.maven.plugins</groupId>
148+
<artifactId>maven-resources-plugin</artifactId>
149+
<version>3.3.1</version>
150+
</plugin>
151+
<plugin>
152+
<groupId>org.apache.maven.plugins</groupId>
153+
<artifactId>maven-compiler-plugin</artifactId>
154+
<version>3.14.0</version>
155+
</plugin>
156+
<plugin>
157+
<groupId>org.apache.maven.plugins</groupId>
158+
<artifactId>maven-surefire-plugin</artifactId>
159+
<version>${surefire.version}</version>
160+
</plugin>
161+
<plugin>
162+
<groupId>org.jacoco</groupId>
163+
<artifactId>jacoco-maven-plugin</artifactId>
164+
<version>0.8.13</version>
165+
</plugin>
166+
<plugin>
167+
<groupId>org.apache.maven.plugins</groupId>
168+
<artifactId>maven-install-plugin</artifactId>
169+
<version>3.1.4</version>
170+
</plugin>
171+
<plugin>
172+
<groupId>org.apache.maven.plugins</groupId>
173+
<artifactId>maven-deploy-plugin</artifactId>
174+
<version>3.1.4</version>
175+
</plugin>
176+
<plugin>
177+
<groupId>org.sonarsource.sonar-packaging-maven-plugin</groupId>
178+
<artifactId>sonar-packaging-maven-plugin</artifactId>
179+
<version>1.23.0.740</version>
180+
</plugin>
181+
<plugin>
182+
<groupId>org.apache.maven.plugins</groupId>
183+
<artifactId>maven-project-info-reports-plugin</artifactId>
184+
<version>2.9</version>
185+
</plugin>
186+
</plugins>
187+
</pluginManagement>
146188
<plugins>
147189

148190
<plugin>
149191
<groupId>org.sonarsource.sonar-packaging-maven-plugin</groupId>
150192
<artifactId>sonar-packaging-maven-plugin</artifactId>
151-
<version>${sonar-packaging-maven-plugin.version}</version>
152193
<extensions>true</extensions>
153194
</plugin>
154195

155196
<plugin>
156197
<groupId>org.apache.maven.plugins</groupId>
157198
<artifactId>maven-compiler-plugin</artifactId>
158-
<version>3.10.1</version>
159199
<configuration>
160200
<source>${jdk.min.version}</source>
161201
<target>${jdk.min.version}</target>
162202
</configuration>
163203
</plugin>
164204

165-
<plugin>
166-
<!-- UTF-8 bundles are not supported by Java, so they must be converted during build -->
167-
<groupId>org.codehaus.mojo</groupId>
168-
<artifactId>native2ascii-maven-plugin</artifactId>
169-
<version>2.0.1</version>
170-
<executions>
171-
<execution>
172-
<goals>
173-
<goal>resources</goal>
174-
</goals>
175-
</execution>
176-
</executions>
177-
</plugin>
178-
179205
<plugin>
180206
<groupId>org.apache.maven.plugins</groupId>
181207
<artifactId>maven-project-info-reports-plugin</artifactId>
182-
<version>2.9</version>
183208
<configuration>
184209
<dependencyLocationsEnabled>false</dependencyLocationsEnabled>
185210
</configuration>
@@ -188,20 +213,18 @@
188213
<plugin>
189214
<groupId>org.apache.maven.plugins</groupId>
190215
<artifactId>maven-surefire-plugin</artifactId>
191-
<version>3.0.0-M4</version>
192216
<dependencies>
193217
<dependency>
194218
<groupId>org.apache.maven.surefire</groupId>
195219
<artifactId>surefire-junit47</artifactId>
196-
<version>3.0.0-M4</version>
220+
<version>${surefire.version}</version>
197221
</dependency>
198222
</dependencies>
199223
</plugin>
200224

201225
<plugin>
202226
<groupId>org.jacoco</groupId>
203227
<artifactId>jacoco-maven-plugin</artifactId>
204-
<version>${jacoco.version}</version>
205228
<executions>
206229
<execution>
207230
<id>prepare-agent</id>
@@ -234,15 +257,4 @@
234257

235258
</plugins>
236259
</build>
237-
238-
239-
<dependencyManagement>
240-
<dependencies>
241-
<dependency>
242-
<groupId>junit</groupId>
243-
<artifactId>junit</artifactId>
244-
<version>${junit.version}</version>
245-
</dependency>
246-
</dependencies>
247-
</dependencyManagement>
248-
</project>
260+
</project>

0 commit comments

Comments
 (0)