|
49 | 49 | </issueManagement>
|
50 | 50 |
|
51 | 51 | <distributionManagement>
|
52 |
| - <snapshotRepository> |
53 |
| - <id>codemc-snapshots</id> |
54 |
| - <url>https://repo.codemc.org/repository/maven-snapshots</url> |
55 |
| - </snapshotRepository> |
56 | 52 | <repository>
|
57 |
| - <id>codemc-releases</id> |
58 |
| - <url>https://repo.codemc.org/repository/maven-releases</url> |
| 53 | + <id>bentoboxworld</id> |
| 54 | + <url>https://repo.codemc.org/repository/bentoboxworld/</url> |
59 | 55 | </repository>
|
60 | 56 | </distributionManagement>
|
61 | 57 |
|
62 | 58 | <properties>
|
63 | 59 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
64 | 60 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
65 |
| - <java.version>1.8</java.version> |
| 61 | + <java.version>21</java.version> |
66 | 62 | <!-- Non-minecraft related dependencies -->
|
67 |
| - <powermock.version>2.0.2</powermock.version> |
| 63 | + <powermock.version>2.0.9</powermock.version> |
68 | 64 | <!-- More visible way how to change dependency versions -->
|
69 |
| - <spigot.version>1.16.3-R0.1-SNAPSHOT</spigot.version> |
70 |
| - <bentobox.version>1.15.4-SNAPSHOT</bentobox.version> |
| 65 | + <spigot.version>1.21.3-R0.1-SNAPSHOT</spigot.version> |
| 66 | + <bentobox.version>2.7.1-SNAPSHOT</bentobox.version> |
71 | 67 | <!-- Revision variable removes warning about dynamic version -->
|
72 | 68 | <revision>${build.version}-SNAPSHOT</revision>
|
73 | 69 | <!-- Do not change unless you want different name for local builds. -->
|
74 | 70 | <build.number>-LOCAL</build.number>
|
75 | 71 | <!-- This allows to change between versions. -->
|
76 |
| - <build.version>1.2.0</build.version> |
| 72 | + <build.version>1.3.0</build.version> |
77 | 73 | </properties>
|
78 | 74 |
|
79 | 75 | <!-- Profiles will allow to automatically change build version. -->
|
|
123 | 119 | <id>spigot-repo</id>
|
124 | 120 | <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots</url>
|
125 | 121 | </repository>
|
| 122 | + <repository> |
| 123 | + <id>bentoboxworld</id> |
| 124 | + <url>https://repo.codemc.org/repository/bentoboxworld</url> |
| 125 | + </repository> |
126 | 126 | <repository>
|
127 | 127 | <id>codemc-repo</id>
|
128 | 128 | <url>https://repo.codemc.org/repository/maven-public/</url>
|
|
145 | 145 | <dependency>
|
146 | 146 | <groupId>org.mockito</groupId>
|
147 | 147 | <artifactId>mockito-core</artifactId>
|
148 |
| - <version>3.0.0</version> |
| 148 | + <version>3.11.2</version> |
149 | 149 | <scope>test</scope>
|
150 | 150 | </dependency>
|
151 | 151 | <dependency>
|
|
209 | 209 | <configuration>
|
210 | 210 | <source>${java.version}</source>
|
211 | 211 | <target>${java.version}</target>
|
| 212 | + <release>${java.version}</release> |
212 | 213 | </configuration>
|
213 | 214 | </plugin>
|
214 | 215 | <plugin>
|
215 | 216 | <groupId>org.apache.maven.plugins</groupId>
|
216 | 217 | <artifactId>maven-surefire-plugin</artifactId>
|
217 |
| - <version>2.22.0</version> |
| 218 | + <version>3.0.0-M5</version> |
| 219 | + <configuration> |
| 220 | + <argLine> |
| 221 | + ${argLine} |
| 222 | + --add-opens java.base/java.lang=ALL-UNNAMED |
| 223 | + --add-opens java.base/java.math=ALL-UNNAMED |
| 224 | + --add-opens java.base/java.io=ALL-UNNAMED |
| 225 | + --add-opens java.base/java.util=ALL-UNNAMED |
| 226 | + --add-opens |
| 227 | + java.base/java.util.stream=ALL-UNNAMED |
| 228 | + --add-opens java.base/java.text=ALL-UNNAMED |
| 229 | + --add-opens |
| 230 | + java.base/java.util.regex=ALL-UNNAMED |
| 231 | + --add-opens |
| 232 | + java.base/java.nio.channels.spi=ALL-UNNAMED |
| 233 | + --add-opens java.base/sun.nio.ch=ALL-UNNAMED |
| 234 | + --add-opens java.base/java.net=ALL-UNNAMED |
| 235 | + --add-opens |
| 236 | + java.base/java.util.concurrent=ALL-UNNAMED |
| 237 | + --add-opens java.base/sun.nio.fs=ALL-UNNAMED |
| 238 | + --add-opens java.base/sun.nio.cs=ALL-UNNAMED |
| 239 | + --add-opens java.base/java.nio.file=ALL-UNNAMED |
| 240 | + --add-opens |
| 241 | + java.base/java.nio.charset=ALL-UNNAMED |
| 242 | + --add-opens |
| 243 | + java.base/java.lang.reflect=ALL-UNNAMED |
| 244 | + --add-opens |
| 245 | + java.logging/java.util.logging=ALL-UNNAMED |
| 246 | + --add-opens java.base/java.lang.ref=ALL-UNNAMED |
| 247 | + --add-opens java.base/java.util.jar=ALL-UNNAMED |
| 248 | + --add-opens java.base/java.util.zip=ALL-UNNAMED |
| 249 | + </argLine> |
| 250 | + |
| 251 | + </configuration> |
218 | 252 | </plugin>
|
219 | 253 | <plugin>
|
220 | 254 | <groupId>org.apache.maven.plugins</groupId>
|
221 | 255 | <artifactId>maven-jar-plugin</artifactId>
|
222 |
| - <version>3.1.0</version> |
| 256 | + <version>3.2.0</version> |
223 | 257 | </plugin>
|
224 | 258 | <plugin>
|
225 | 259 | <groupId>org.apache.maven.plugins</groupId>
|
226 | 260 | <artifactId>maven-javadoc-plugin</artifactId>
|
227 |
| - <version>3.0.1</version> |
| 261 | + <version>3.1.1</version> |
228 | 262 | <configuration>
|
229 | 263 | <show>public</show>
|
230 | 264 | <failOnError>false</failOnError>
|
231 | 265 | <additionalJOption>-Xdoclint:none</additionalJOption>
|
| 266 | + <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable> |
232 | 267 | </configuration>
|
233 | 268 | <executions>
|
234 | 269 | <execution>
|
|
262 | 297 | <artifactId>maven-deploy-plugin</artifactId>
|
263 | 298 | <version>2.8.2</version>
|
264 | 299 | </plugin>
|
| 300 | + <plugin> |
| 301 | + <groupId>org.jacoco</groupId> |
| 302 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 303 | + <version>0.8.10</version> |
| 304 | + <configuration> |
| 305 | + <append>true</append> |
| 306 | + <excludes> |
| 307 | + <!-- This is required to prevent Jacoco from adding |
| 308 | + synthetic fields to a JavaBean class (causes errors in testing) --> |
| 309 | + <exclude>**/*Names*</exclude> |
| 310 | + <!-- Prevents the Material is too large to mock error --> |
| 311 | + <exclude>org/bukkit/Material*</exclude> |
| 312 | + </excludes> |
| 313 | + </configuration> |
| 314 | + <executions> |
| 315 | + <execution> |
| 316 | + <id>prepare-agent</id> |
| 317 | + <goals> |
| 318 | + <goal>prepare-agent</goal> |
| 319 | + </goals> |
| 320 | + </execution> |
| 321 | + <execution> |
| 322 | + <id>report</id> |
| 323 | + <goals> |
| 324 | + <goal>report</goal> |
| 325 | + </goals> |
| 326 | + <configuration> |
| 327 | + <formats> |
| 328 | + <format>XML</format> |
| 329 | + </formats> |
| 330 | + </configuration> |
| 331 | + </execution> |
| 332 | + </executions> |
| 333 | + </plugin> |
265 | 334 | </plugins>
|
266 | 335 | </build>
|
267 | 336 |
|
|
0 commit comments