|
54 | 54 | <properties> |
55 | 55 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
56 | 56 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
57 | | - <java.version>17</java.version> |
| 57 | + <java.version>21</java.version> |
58 | 58 | <!-- Non-minecraft related dependencies --> |
59 | | - <powermock.version>2.0.2</powermock.version> |
| 59 | + <powermock.version>2.0.9</powermock.version> |
60 | 60 | <!-- More visible way how to change dependency versions --> |
61 | | - <spigot.version>1.19.4-R0.1-SNAPSHOT</spigot.version> |
62 | | - <bentobox.version>1.23.0</bentobox.version> |
| 61 | + <spigot.version>1.21-R0.1-SNAPSHOT</spigot.version> |
| 62 | + <bentobox.version>2.4.1-SNAPSHOT</bentobox.version> |
63 | 63 | <!-- Revision variable removes warning about dynamic version --> |
64 | 64 | <revision>${build.version}-SNAPSHOT</revision> |
65 | 65 | <!-- Do not change unless you want different name for local builds. --> |
66 | 66 | <build.number>-LOCAL</build.number> |
67 | 67 | <!-- This allows to change between versions. --> |
68 | | - <build.version>1.19.0</build.version> |
| 68 | + <build.version>2.1.0</build.version> |
69 | 69 | <!-- SonarCloud --> |
70 | 70 | <sonar.projectKey>BentoBoxWorld_SkyGrid</sonar.projectKey> |
71 | 71 | <sonar.organization>bentobox-world</sonar.organization> |
|
113 | 113 | </properties> |
114 | 114 | </profile> |
115 | 115 | </profiles> |
| 116 | + |
| 117 | + <pluginRepositories> |
| 118 | + <pluginRepository> |
| 119 | + <id>apache.snapshots</id> |
| 120 | + <url>https://repository.apache.org/snapshots/</url> |
| 121 | + </pluginRepository> |
| 122 | + </pluginRepositories> |
| 123 | + |
116 | 124 |
|
117 | 125 | <repositories> |
118 | 126 | <repository> |
|
145 | 153 | <dependency> |
146 | 154 | <groupId>org.mockito</groupId> |
147 | 155 | <artifactId>mockito-core</artifactId> |
148 | | - <version>3.0.0</version> |
| 156 | + <version>3.11.1</version> |
149 | 157 | <scope>test</scope> |
150 | 158 | </dependency> |
151 | 159 | <dependency> |
|
219 | 227 | <plugin> |
220 | 228 | <groupId>org.apache.maven.plugins</groupId> |
221 | 229 | <artifactId>maven-resources-plugin</artifactId> |
222 | | - <version>3.1.0</version> |
| 230 | + <version>3.2.0</version> |
223 | 231 | <configuration> |
224 | 232 | <nonFilteredFileExtensions> |
225 | | - <nonFilteredFileExtension>schem</nonFilteredFileExtension> |
| 233 | + <nonFilteredFileExtension>blu</nonFilteredFileExtension> |
226 | 234 | </nonFilteredFileExtensions> |
227 | 235 | </configuration> |
228 | 236 | </plugin> |
229 | 237 | <plugin> |
230 | 238 | <groupId>org.apache.maven.plugins</groupId> |
231 | 239 | <artifactId>maven-compiler-plugin</artifactId> |
232 | | - <version>3.7.0</version> |
| 240 | + <version>3.8.1</version> |
233 | 241 | <configuration> |
234 | 242 | <release>${java.version}</release> |
235 | 243 | </configuration> |
236 | 244 | </plugin> |
237 | 245 | <plugin> |
238 | 246 | <groupId>org.apache.maven.plugins</groupId> |
239 | 247 | <artifactId>maven-surefire-plugin</artifactId> |
240 | | - <version>2.22.0</version> |
| 248 | + <version>3.0.0-M5</version> |
| 249 | + <configuration> |
| 250 | + <argLine> |
| 251 | + ${argLine} |
| 252 | + --add-opens java.base/java.lang=ALL-UNNAMED |
| 253 | + --add-opens java.base/java.math=ALL-UNNAMED |
| 254 | + --add-opens java.base/java.io=ALL-UNNAMED |
| 255 | + --add-opens java.base/java.util=ALL-UNNAMED |
| 256 | + --add-opens |
| 257 | + java.base/java.util.stream=ALL-UNNAMED |
| 258 | + --add-opens java.base/java.text=ALL-UNNAMED |
| 259 | + --add-opens |
| 260 | + java.base/java.util.regex=ALL-UNNAMED |
| 261 | + --add-opens |
| 262 | + java.base/java.nio.channels.spi=ALL-UNNAMED |
| 263 | + --add-opens java.base/sun.nio.ch=ALL-UNNAMED |
| 264 | + --add-opens java.base/java.net=ALL-UNNAMED |
| 265 | + --add-opens |
| 266 | + java.base/java.util.concurrent=ALL-UNNAMED |
| 267 | + --add-opens java.base/sun.nio.fs=ALL-UNNAMED |
| 268 | + --add-opens java.base/sun.nio.cs=ALL-UNNAMED |
| 269 | + --add-opens java.base/java.nio.file=ALL-UNNAMED |
| 270 | + --add-opens |
| 271 | + java.base/java.nio.charset=ALL-UNNAMED |
| 272 | + --add-opens |
| 273 | + java.base/java.lang.reflect=ALL-UNNAMED |
| 274 | + --add-opens |
| 275 | + java.logging/java.util.logging=ALL-UNNAMED |
| 276 | + --add-opens java.base/java.lang.ref=ALL-UNNAMED |
| 277 | + --add-opens java.base/java.util.jar=ALL-UNNAMED |
| 278 | + --add-opens java.base/java.util.zip=ALL-UNNAMED |
| 279 | + </argLine> |
| 280 | + </configuration> |
241 | 281 | </plugin> |
242 | 282 | <plugin> |
243 | 283 | <groupId>org.apache.maven.plugins</groupId> |
244 | 284 | <artifactId>maven-jar-plugin</artifactId> |
245 | | - <version>3.1.0</version> |
| 285 | + <version>3.2.0</version> |
246 | 286 | </plugin> |
247 | | - <plugin> |
| 287 | + <plugin> |
248 | 288 | <groupId>org.apache.maven.plugins</groupId> |
249 | 289 | <artifactId>maven-javadoc-plugin</artifactId> |
250 | 290 | <version>3.3.0</version> |
251 | 291 | <configuration> |
252 | 292 | <failOnError>false</failOnError> |
253 | 293 | <additionalJOption>-Xdoclint:none</additionalJOption> |
254 | | - <!-- To compile with Java 11, this tag may be required --> |
255 | | - <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable> |
256 | 294 | </configuration> |
257 | 295 | <executions> |
258 | 296 | <execution> |
259 | 297 | <id>attach-javadocs</id> |
260 | | - <phase>install</phase> |
261 | 298 | <goals> |
262 | 299 | <goal>jar</goal> |
263 | 300 | </goals> |
|
267 | 304 | <plugin> |
268 | 305 | <groupId>org.apache.maven.plugins</groupId> |
269 | 306 | <artifactId>maven-source-plugin</artifactId> |
270 | | - <version>3.0.1</version> |
| 307 | + <version>3.2.1</version> |
271 | 308 | <executions> |
272 | 309 | <execution> |
273 | 310 | <id>attach-sources</id> |
|
280 | 317 | <plugin> |
281 | 318 | <groupId>org.apache.maven.plugins</groupId> |
282 | 319 | <artifactId>maven-install-plugin</artifactId> |
283 | | - <version>2.5.2</version> |
| 320 | + <version>3.0.0-M1</version> |
284 | 321 | </plugin> |
285 | 322 | <plugin> |
286 | 323 | <groupId>org.apache.maven.plugins</groupId> |
287 | 324 | <artifactId>maven-deploy-plugin</artifactId> |
288 | | - <version>2.8.2</version> |
| 325 | + <version>3.0.0-M1</version> |
289 | 326 | </plugin> |
290 | 327 | <plugin> |
291 | 328 | <groupId>org.jacoco</groupId> |
292 | 329 | <artifactId>jacoco-maven-plugin</artifactId> |
293 | | - <version>0.8.3</version> |
| 330 | + <version>0.8.10</version> |
294 | 331 | <configuration> |
295 | 332 | <append>true</append> |
296 | 333 | <excludes> |
297 | 334 | <!-- This is required to prevent Jacoco from adding |
298 | 335 | synthetic fields to a JavaBean class (causes errors in testing) --> |
299 | 336 | <exclude>**/*Names*</exclude> |
| 337 | + <!-- Prevents the Material is too large to mock error --> |
| 338 | + <exclude>org/bukkit/Material*</exclude> |
300 | 339 | </excludes> |
301 | 340 | </configuration> |
302 | 341 | <executions> |
|
0 commit comments