Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.

Commit 747d210

Browse files
committed
Implement variable in pom.xml
1 parent 44150d1 commit 747d210

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

pom.xml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212

1313
<properties>
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15+
<sonar.api.version>9.14.0.375</sonar.api.version>
16+
<sonar.addons.version>10.6.0.92116</sonar.addons.version>
17+
<commons.lang3.version>3.14.0</commons.lang3.version>
18+
<gson.version>2.11.0</gson.version>
19+
<junit.jupiter.api.version>5.11.0-M2</junit.jupiter.api.version>
20+
<jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version>
21+
<jdk.version>17</jdk.version>
1522
<pluginUrl>https://cnes.fr</pluginUrl>
1623
<pluginOrganizationName>CNES</pluginOrganizationName>
1724
</properties>
@@ -50,33 +57,33 @@
5057
<dependency>
5158
<groupId>org.sonarsource.api.plugin</groupId>
5259
<artifactId>sonar-plugin-api</artifactId>
53-
<version>9.14.0.375</version>
60+
<version>${sonar.api.version}</version>
5461
<scope>provided</scope>
5562
</dependency>
5663
<!-- https://mvnrepository.com/artifact/org.sonarsource.sonarqube/sonar-ws -->
5764
<dependency>
5865
<groupId>org.sonarsource.sonarqube</groupId>
5966
<artifactId>sonar-ws</artifactId>
60-
<version>10.6.0.92116</version>
67+
<version>${sonar.addons.version}</version>
6168
</dependency>
6269
<!-- https://mvnrepository.com/artifact/org.sonarsource.sonarqube/sonar-plugin-api-impl -->
6370
<dependency>
6471
<groupId>org.sonarsource.sonarqube</groupId>
6572
<artifactId>sonar-plugin-api-impl</artifactId>
66-
<version>10.6.0.92116</version>
73+
<version>${sonar.addons.version}</version>
6774
<scope>test</scope>
6875
</dependency>
6976
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
7077
<dependency>
7178
<groupId>org.apache.commons</groupId>
7279
<artifactId>commons-lang3</artifactId>
73-
<version>3.14.0</version>
80+
<version>${commons.lang3.version}</version>
7481
</dependency>
7582
<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
7683
<dependency>
7784
<groupId>com.google.code.gson</groupId>
7885
<artifactId>gson</artifactId>
79-
<version>2.11.0</version>
86+
<version>${gson.version}</version>
8087
</dependency>
8188

8289

@@ -85,14 +92,14 @@
8592
<dependency>
8693
<groupId>org.sonarsource.sonarqube</groupId>
8794
<artifactId>sonar-testing-harness</artifactId>
88-
<version>10.6.0.92116</version>
95+
<version>${sonar.addons.version}</version>
8996
<scope>test</scope>
9097
</dependency>
9198
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
9299
<dependency>
93100
<groupId>org.junit.jupiter</groupId>
94101
<artifactId>junit-jupiter-api</artifactId>
95-
<version>5.11.0-M2</version>
102+
<version>${junit.jupiter.api.version}</version>
96103
<scope>test</scope>
97104
</dependency>
98105
</dependencies>
@@ -115,8 +122,8 @@
115122
<artifactId>maven-compiler-plugin</artifactId>
116123
<version>3.13.0</version>
117124
<configuration>
118-
<source>17</source>
119-
<target>17</target>
125+
<source>${jdk.version}</source>
126+
<target>${jdk.version}</target>
120127
</configuration>
121128
</plugin>
122129
<plugin>
@@ -133,7 +140,7 @@
133140
<plugin>
134141
<groupId>org.jacoco</groupId>
135142
<artifactId>jacoco-maven-plugin</artifactId>
136-
<version>0.8.12</version>
143+
<version>${jacoco-maven-plugin.version}</version>
137144
<executions>
138145
<execution>
139146
<id>prepare-agent</id>

0 commit comments

Comments
 (0)