Skip to content

Commit 3daafff

Browse files
committed
🔧 mise à niveau du pom.xml
1 parent 421f772 commit 3daafff

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

pom.xml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,37 @@
1313
<url>https://github.com/DevLab-umontp/API-JAVA-EDT</url>
1414

1515
<properties>
16+
<!-- base -->
17+
<project.java.version>11</project.java.version>
18+
<junit.jupiter.version>5.4.0-M1</junit.jupiter.version>
1619
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
17-
<maven.compiler.source>11</maven.compiler.source>
18-
<maven.compiler.target>11</maven.compiler.target>
20+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
21+
22+
<!-- https://sonarcloud.io -->
1923
<sonar.projectKey>DevLab-umontp_API-JAVA-EDT</sonar.projectKey>
2024
<sonar.organization>devlab-umontp</sonar.organization>
2125
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
26+
<sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/../target/site/jacoco/jacoco.xml
27+
</sonar.coverage.jacoco.xmlReportPaths>
2228
</properties>
2329

2430
<dependencies>
2531
<dependency>
2632
<groupId>org.junit.jupiter</groupId>
2733
<artifactId>junit-jupiter-api</artifactId>
28-
<version>5.4.0-M1</version>
34+
<version>${junit.jupiter.version}</version>
35+
<scope>test</scope>
2936
</dependency>
3037
<dependency>
3138
<groupId>org.junit.jupiter</groupId>
3239
<artifactId>junit-jupiter-engine</artifactId>
33-
<version>5.4.0-M1</version>
40+
<version>${junit.jupiter.version}</version>
3441
<scope>test</scope>
3542
</dependency>
3643
<dependency>
3744
<groupId>org.junit.jupiter</groupId>
3845
<artifactId>junit-jupiter-params</artifactId>
39-
<version>5.4.0-M1</version>
46+
<version>${junit.jupiter.version}</version>
4047
<scope>test</scope>
4148
</dependency>
4249
<dependency>
@@ -154,8 +161,9 @@
154161
<artifactId>maven-compiler-plugin</artifactId>
155162
<version>3.8.1</version>
156163
<configuration>
157-
<source>11</source>
158-
<target>11</target>
164+
<source>${project.java.version}</source>
165+
<target>${project.java.version}</target>
166+
<encoding>${project.build.sourceEncoding}</encoding>
159167
</configuration>
160168
</plugin>
161169
<plugin>
@@ -175,14 +183,14 @@
175183
<version>0.8.6</version>
176184
<executions>
177185
<execution>
178-
<id>default-prepare-agent</id>
186+
<id>prepare-agent</id>
179187
<goals>
180188
<goal>prepare-agent</goal>
181189
</goals>
182190
</execution>
183191
<execution>
184-
<id>default-report</id>
185-
<phase>prepare-package</phase>
192+
<id>report</id>
193+
<phase>test</phase>
186194
<goals>
187195
<goal>report</goal>
188196
</goals>

0 commit comments

Comments
 (0)