|
24 | 24 | <!-- Target Java 16 --> |
25 | 25 | <maven.compiler.source>16</maven.compiler.source> |
26 | 26 | <maven.compiler.target>16</maven.compiler.target> |
| 27 | + <!-- Run tests using java 21 --> |
| 28 | + <maven.compiler.testSource>21</maven.compiler.testSource> |
| 29 | + <maven.compiler.testTarget>21</maven.compiler.testTarget> |
27 | 30 |
|
28 | 31 | <!-- Spigot properties --> |
29 | | - <spigot.version>1.20.4</spigot.version> |
| 32 | + <spigot.version>1.20.6</spigot.version> |
30 | 33 | <spigot.javadocs>https://hub.spigotmc.org/javadocs/spigot/</spigot.javadocs> |
31 | 34 |
|
32 | 35 | <!-- Default settings for sonarcloud.io --> |
|
115 | 118 | <!-- Compiler plugin --> |
116 | 119 | <groupId>org.apache.maven.plugins</groupId> |
117 | 120 | <artifactId>maven-compiler-plugin</artifactId> |
118 | | - <version>3.12.1</version> |
| 121 | + <version>3.13.0</version> |
119 | 122 |
|
120 | 123 | <configuration> |
121 | 124 | <excludes> |
|
130 | 133 | <!-- Attach sources --> |
131 | 134 | <groupId>org.apache.maven.plugins</groupId> |
132 | 135 | <artifactId>maven-source-plugin</artifactId> |
133 | | - <version>3.3.0</version> |
| 136 | + <version>3.3.1</version> |
134 | 137 |
|
135 | 138 | <executions> |
136 | 139 | <execution> |
|
146 | 149 | <!-- Plugin for Unit Tests --> |
147 | 150 | <groupId>org.apache.maven.plugins</groupId> |
148 | 151 | <artifactId>maven-surefire-plugin</artifactId> |
149 | | - <version>3.2.5</version> |
| 152 | + <version>3.3.1</version> |
150 | 153 |
|
151 | 154 | <configuration> |
152 | 155 | <junitArtifactName>org.junit.jupiter:junit-jupiter</junitArtifactName> |
|
235 | 238 | <!-- Javadocs --> |
236 | 239 | <groupId>org.apache.maven.plugins</groupId> |
237 | 240 | <artifactId>maven-javadoc-plugin</artifactId> |
238 | | - <version>3.6.3</version> |
| 241 | + <version>3.7.0</version> |
239 | 242 |
|
240 | 243 | <configuration> |
241 | 244 | <reportOutputDirectory>${project.basedir}</reportOutputDirectory> |
|
329 | 332 | </resources> |
330 | 333 | </build> |
331 | 334 |
|
332 | | - <dependencies> |
333 | | - |
| 335 | + <dependencyManagement> |
| 336 | + <dependencies> |
| 337 | + <dependency> |
| 338 | + <groupId>org.junit</groupId> |
| 339 | + <artifactId>junit-bom</artifactId> |
| 340 | + <version>5.10.3</version> |
| 341 | + <type>pom</type> |
| 342 | + <scope>import</scope> |
| 343 | + </dependency> |
| 344 | + </dependencies> |
| 345 | + </dependencyManagement> |
334 | 346 |
|
| 347 | + <dependencies> |
335 | 348 | <!-- Development dependencies --> |
336 | 349 | <dependency> |
337 | 350 | <groupId>com.google.code.findbugs</groupId> |
|
344 | 357 | <dependency> |
345 | 358 | <groupId>com.github.baked-libs.dough</groupId> |
346 | 359 | <artifactId>dough-api</artifactId> |
347 | | - <version>baf2d79f62</version> |
| 360 | + <version>f8ff25187d</version> |
348 | 361 | <scope>compile</scope> |
349 | 362 | </dependency> |
350 | 363 | <dependency> |
|
358 | 371 | <dependency> |
359 | 372 | <groupId>org.junit.jupiter</groupId> |
360 | 373 | <artifactId>junit-jupiter</artifactId> |
361 | | - <version>5.10.2</version> |
362 | 374 | <scope>test</scope> |
363 | 375 | </dependency> |
364 | 376 | <dependency> |
|
375 | 387 | </dependency> |
376 | 388 | <!-- This needs to be before Spigot because MockBukkit will fail otherwise. --> |
377 | 389 | <dependency> |
378 | | - <groupId>com.github.seeseemelk</groupId> |
379 | | - <artifactId>MockBukkit-v1.20</artifactId> |
380 | | - <version>3.65.0</version> |
| 390 | + <groupId>com.github.MockBukkit</groupId> |
| 391 | + <artifactId>MockBukkit</artifactId> |
| 392 | + <version>c7cc678834</version> |
381 | 393 | <scope>test</scope> |
382 | 394 |
|
383 | 395 | <exclusions> |
|
387 | 399 | <groupId>org.jetbrains</groupId> |
388 | 400 | <artifactId>annotations</artifactId> |
389 | 401 | </exclusion> |
390 | | - <exclusion> |
391 | | - <groupId>io.papermc.paper</groupId> |
392 | | - <artifactId>paper-api</artifactId> |
393 | | - </exclusion> |
394 | 402 | </exclusions> |
395 | 403 | </dependency> |
396 | | - <!-- Override MockBukkit's Paper to a pinned slightly older version --> |
397 | | - <!-- This is because MockBukkit currently fails after this PR: --> |
398 | | - <!-- https://github.com/PaperMC/Paper/pull/9629 --> |
| 404 | + <!-- Override Spigot with Paper tests as a CommandMap ctor which MockBukkit uses only exists on Paper but not in Spigot --> |
399 | 405 | <dependency> |
400 | 406 | <groupId>io.papermc.paper</groupId> |
401 | 407 | <artifactId>paper-api</artifactId> |
402 | | - <version>1.20.4-R0.1-20240205.114523-90</version> |
| 408 | + <version>1.20.6-R0.1-SNAPSHOT</version> |
403 | 409 | <scope>test</scope> |
404 | 410 | </dependency> |
405 | 411 |
|
|
0 commit comments