|
44 | 44 | <properties> |
45 | 45 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
46 | 46 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
47 | | - <java.version>16</java.version> |
48 | | - <powermock.version>2.0.2</powermock.version> |
| 47 | + <java.version>17</java.version> |
| 48 | + <powermock.version>2.0.9</powermock.version> |
49 | 49 | <!-- More visible way how to change dependency versions --> |
50 | 50 | <spigot.version>1.17.1-R0.1-SNAPSHOT</spigot.version> |
51 | 51 | <bentobox.version>1.20.0</bentobox.version> |
|
54 | 54 | <!-- This allows to change between versions and snapshots. --> |
55 | 55 | <build.version>1.11.0</build.version> |
56 | 56 | <build.number>-LOCAL</build.number> |
| 57 | + <sonar.projectKey>BentoBoxWorld_Boxed</sonar.projectKey> |
| 58 | + <sonar.organization>bentobox-world</sonar.organization> |
| 59 | + <sonar.host.url>https://sonarcloud.io</sonar.host.url> |
| 60 | + |
57 | 61 | </properties> |
58 | 62 |
|
59 | 63 | <profiles> |
|
94 | 98 | <build.number></build.number> |
95 | 99 | </properties> |
96 | 100 | </profile> |
97 | | - <profile> |
98 | | - <id>sonar</id> |
99 | | - <properties> |
100 | | - <sonar.host.url>https://sonarcloud.io</sonar.host.url> |
101 | | - <sonar.organization>bentobox-world</sonar.organization> |
102 | | - </properties> |
103 | | - <build> |
104 | | - <plugins> |
105 | | - <plugin> |
106 | | - <groupId>org.sonarsource.scanner.maven</groupId> |
107 | | - <artifactId>sonar-maven-plugin</artifactId> |
108 | | - <version>3.7.0.1746</version> |
109 | | - <executions> |
110 | | - <execution> |
111 | | - <phase>verify</phase> |
112 | | - <goals> |
113 | | - <goal>sonar</goal> |
114 | | - </goals> |
115 | | - </execution> |
116 | | - </executions> |
117 | | - </plugin> |
118 | | - </plugins> |
119 | | - </build> |
120 | | - </profile> |
121 | 101 | </profiles> |
122 | 102 |
|
123 | 103 | <repositories> |
|
292 | 272 | <artifactId>maven-deploy-plugin</artifactId> |
293 | 273 | <version>2.8.2</version> |
294 | 274 | </plugin> |
295 | | - <plugin> |
| 275 | + <plugin> |
296 | 276 | <groupId>org.jacoco</groupId> |
297 | 277 | <artifactId>jacoco-maven-plugin</artifactId> |
298 | 278 | <version>0.8.10</version> |
299 | 279 | <configuration> |
300 | 280 | <append>true</append> |
301 | 281 | <excludes> |
302 | | - <!-- This is required to prevent Jacoco from adding synthetic fields |
303 | | - to a JavaBean class (causes errors in testing) --> |
| 282 | + <!-- This is required to prevent Jacoco from adding |
| 283 | + synthetic fields to a JavaBean class (causes errors in testing) --> |
304 | 284 | <exclude>**/*Names*</exclude> |
305 | 285 | </excludes> |
306 | 286 | </configuration> |
307 | 287 | <executions> |
308 | 288 | <execution> |
309 | | - <id>pre-unit-test</id> |
| 289 | + <id>prepare-agent</id> |
310 | 290 | <goals> |
311 | 291 | <goal>prepare-agent</goal> |
312 | 292 | </goals> |
313 | 293 | </execution> |
314 | 294 | <execution> |
315 | | - <id>post-unit-test</id> |
| 295 | + <id>report</id> |
316 | 296 | <goals> |
317 | 297 | <goal>report</goal> |
318 | 298 | </goals> |
| 299 | + <configuration> |
| 300 | + <formats> |
| 301 | + <format>XML</format> |
| 302 | + </formats> |
| 303 | + </configuration> |
319 | 304 | </execution> |
320 | 305 | </executions> |
321 | 306 | </plugin> |
| 307 | + |
322 | 308 | </plugins> |
323 | 309 | </build> |
324 | 310 | </project> |
0 commit comments