|
1 | 1 | <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2 | 2 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
3 | 3 | <modelVersion>4.0.0</modelVersion>
|
4 |
| - <groupId>com.comphenix.protocol</groupId> |
| 4 | + <groupId>com.comphenix.protocol</groupId> |
5 | 5 | <artifactId>ProtocolLib</artifactId>
|
6 | 6 | <name>ProtocolLib</name>
|
7 | 7 | <version>4.8.0-SNAPSHOT</version>
|
|
16 | 16 | <project.build.number></project.build.number>
|
17 | 17 | <project.fullVersion>${project.version}</project.fullVersion>
|
18 | 18 |
|
19 |
| - <powermock.version>2.0.9</powermock.version> |
| 19 | + <junit.version>5.8.2</junit.version> |
| 20 | + <mockito.version>4.3.1</mockito.version> |
| 21 | + <netty.version>4.1.74.Final</netty.version> |
20 | 22 | <spigot.version>1.18.1-R0.1-SNAPSHOT</spigot.version>
|
21 | 23 | </properties>
|
22 | 24 |
|
|
71 | 73 |
|
72 | 74 | <plugin>
|
73 | 75 | <artifactId>maven-compiler-plugin</artifactId>
|
74 |
| - <version>3.8.1</version> |
| 76 | + <version>3.10.0</version> |
75 | 77 | <configuration>
|
76 | 78 | <source>1.8</source>
|
77 | 79 | <target>1.8</target>
|
|
81 | 83 | <plugin>
|
82 | 84 | <groupId>org.apache.maven.plugins</groupId>
|
83 | 85 | <artifactId>maven-jar-plugin</artifactId>
|
84 |
| - <version>3.2.0</version> |
| 86 | + <version>3.2.2</version> |
85 | 87 | <configuration>
|
86 | 88 | <archive>
|
87 | 89 | <manifestEntries>
|
|
99 | 101 | <groupId>org.apache.maven.plugins</groupId>
|
100 | 102 | <artifactId>maven-surefire-plugin</artifactId>
|
101 | 103 | <version>3.0.0-M5</version>
|
| 104 | + <dependencies> |
| 105 | + <!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine --> |
| 106 | + <dependency> |
| 107 | + <groupId>org.junit.jupiter</groupId> |
| 108 | + <artifactId>junit-jupiter-engine</artifactId> |
| 109 | + <version>${junit.version}</version> |
| 110 | + </dependency> |
| 111 | + </dependencies> |
102 | 112 | <configuration>
|
103 | 113 | <trimStackTrace>false</trimStackTrace>
|
104 | 114 | <useFile>false</useFile>
|
|
108 | 118 | <value>${project.version}</value>
|
109 | 119 | </property>
|
110 | 120 | </systemProperties>
|
111 |
| - <!-- TODO figure out a better way to do this before Java 17 --> |
112 |
| - <!-- We're currently waiting on powermock, but we may need to switch --> |
113 |
| - <argLine>--add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.regex=ALL-UNNAMED --add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED</argLine> |
| 121 | + <!-- We need this as we use reflection in tests to ensure equality --> |
| 122 | + <argLine>--add-opens java.base/java.util=ALL-UNNAMED</argLine> |
114 | 123 | </configuration>
|
115 | 124 | </plugin>
|
116 | 125 |
|
117 | 126 | <plugin>
|
118 | 127 | <artifactId>maven-javadoc-plugin</artifactId>
|
119 |
| - <version>3.3.1</version> |
| 128 | + <version>3.3.2</version> |
120 | 129 | <configuration>
|
121 | 130 | <failOnError>false</failOnError>
|
122 | 131 | <encoding>ISO-8859-1</encoding>
|
123 | 132 | <doctitle>ProtocolLib JavaDocs</doctitle>
|
124 | 133 | <windowtitle>ProtocolLib JavaDocs</windowtitle>
|
125 | 134 | <bottom>Copyright © {inceptionYear}–{currentYear}
|
126 |
| - Comphenix and dmulloy2. Licensed under the GNU GPL v2.</bottom> |
| 135 | + Comphenix and dmulloy2. Licensed under the GNU GPL v2. |
| 136 | + </bottom> |
127 | 137 | <additionalOptions>
|
128 | 138 | <additionalOption>-Xdoclint:none</additionalOption>
|
129 | 139 | </additionalOptions>
|
|
185 | 195 | <plugin>
|
186 | 196 | <groupId>org.apache.maven.plugins</groupId>
|
187 | 197 | <artifactId>maven-javadoc-plugin</artifactId>
|
188 |
| - <version>3.2.0</version> |
| 198 | + <version>3.3.2</version> |
189 | 199 | <executions>
|
190 | 200 | <execution>
|
191 | 201 | <id>attach-javadocs</id>
|
|
227 | 237 | <licenses>
|
228 | 238 | <license>
|
229 | 239 | <name>GNU GENERAL PUBLIC LICENSE - Version 2, June 1991</name>
|
230 |
| - <url>http://www.gnu.org/licenses/gpl-2.0.txt</url> |
| 240 | + <url>https://www.gnu.org/licenses/gpl-2.0.txt</url> |
231 | 241 | <distribution>repo</distribution>
|
232 | 242 | </license>
|
233 | 243 | </licenses>
|
|
236 | 246 | <developer>
|
237 | 247 | <id>dmulloy2</id>
|
238 | 248 | <name>Dan Mulloy</name>
|
239 |
| - <url>http://dmulloy2.net/</url> |
| 249 | + <url>https://dmulloy2.net/</url> |
240 | 250 | <roles>
|
241 | 251 | <role>developer</role>
|
242 | 252 | <role>maintainer</role>
|
|
246 | 256 | <id>aadnk</id>
|
247 | 257 | <name>Kristian S. Stangeland</name>
|
248 | 258 |
|
249 |
| - <url>http://comphenix.net/</url> |
| 259 | + <url>https://comphenix.net/</url> |
250 | 260 | <roles>
|
251 | 261 | <role>former author</role>
|
252 | 262 | </roles>
|
|
277 | 287 | </repositories>
|
278 | 288 |
|
279 | 289 | <dependencies>
|
280 |
| - <!-- Compile with the old version of Netty for backwards compat --> |
281 |
| - <dependency> |
282 |
| - <groupId>io.netty</groupId> |
283 |
| - <artifactId>netty-all</artifactId> |
284 |
| - <version>4.0.23.Final</version> |
285 |
| - <scope>provided</scope> |
286 |
| - </dependency> |
287 |
| - <!-- since 1.18 minecraft uses new features of netty but netty is no longer bundled - make sure the new classes are available --> |
288 |
| - <dependency> |
289 |
| - <groupId>io.netty</groupId> |
290 |
| - <artifactId>netty-common</artifactId> |
291 |
| - <version>4.1.70.Final</version> |
292 |
| - <scope>test</scope> |
293 |
| - </dependency> |
294 |
| - <dependency> |
295 |
| - <groupId>io.netty</groupId> |
296 |
| - <artifactId>netty-transport</artifactId> |
297 |
| - <version>4.1.70.Final</version> |
298 |
| - <scope>test</scope> |
299 |
| - </dependency> |
| 290 | + <!-- core minecraft dependencies --> |
300 | 291 | <dependency>
|
301 | 292 | <groupId>org.spigotmc</groupId>
|
302 | 293 | <artifactId>spigot-api</artifactId>
|
303 | 294 | <version>${spigot.version}</version>
|
304 | 295 | <scope>provided</scope>
|
| 296 | + <exclusions> |
| 297 | + <exclusion> |
| 298 | + <groupId>junit</groupId> |
| 299 | + <artifactId>*</artifactId> |
| 300 | + </exclusion> |
| 301 | + </exclusions> |
305 | 302 | </dependency>
|
306 | 303 | <dependency>
|
307 | 304 | <groupId>org.spigotmc</groupId>
|
308 | 305 | <artifactId>spigot</artifactId>
|
309 | 306 | <version>${spigot.version}</version>
|
310 | 307 | <scope>provided</scope>
|
| 308 | + <exclusions> |
| 309 | + <exclusion> |
| 310 | + <groupId>junit</groupId> |
| 311 | + <artifactId>*</artifactId> |
| 312 | + </exclusion> |
| 313 | + </exclusions> |
311 | 314 | </dependency>
|
| 315 | + |
| 316 | + <!-- Compile with the old version of Netty for backwards compat --> |
| 317 | + <!-- https://mvnrepository.com/artifact/io.netty/netty-all --> |
| 318 | + <dependency> |
| 319 | + <groupId>io.netty</groupId> |
| 320 | + <artifactId>netty-all</artifactId> |
| 321 | + <version>4.0.23.Final</version> |
| 322 | + <scope>provided</scope> |
| 323 | + </dependency> |
| 324 | + <!-- https://mvnrepository.com/artifact/net.kyori/adventure-text-serializer-gson --> |
312 | 325 | <dependency>
|
313 | 326 | <groupId>net.kyori</groupId>
|
314 | 327 | <artifactId>adventure-text-serializer-gson</artifactId>
|
|
319 | 332 | <dependency>
|
320 | 333 | <groupId>net.bytebuddy</groupId>
|
321 | 334 | <artifactId>byte-buddy</artifactId>
|
322 |
| - <version>1.12.3</version> |
| 335 | + <version>1.12.8</version> |
323 | 336 | </dependency>
|
324 | 337 |
|
325 | 338 | <!-- Testing dependencies -->
|
| 339 | + <!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-engine --> |
326 | 340 | <dependency>
|
327 |
| - <groupId>junit</groupId> |
328 |
| - <artifactId>junit</artifactId> |
329 |
| - <version>4.13.2</version> |
| 341 | + <groupId>org.junit.jupiter</groupId> |
| 342 | + <artifactId>junit-jupiter-api</artifactId> |
| 343 | + <version>${junit.version}</version> |
330 | 344 | <scope>test</scope>
|
331 | 345 | </dependency>
|
| 346 | + <!-- https://mvnrepository.com/artifact/org.mockito/mockito-core --> |
332 | 347 | <dependency>
|
333 | 348 | <groupId>org.mockito</groupId>
|
334 | 349 | <artifactId>mockito-core</artifactId>
|
335 |
| - <version>3.12.4</version> |
| 350 | + <version>${mockito.version}</version> |
336 | 351 | <scope>test</scope>
|
337 | 352 | </dependency>
|
| 353 | + <!-- https://mvnrepository.com/artifact/org.mockito/mockito-inline --> |
338 | 354 | <dependency>
|
339 |
| - <groupId>org.powermock</groupId> |
340 |
| - <artifactId>powermock-module-junit4</artifactId> |
341 |
| - <version>${powermock.version}</version> |
| 355 | + <groupId>org.mockito</groupId> |
| 356 | + <artifactId>mockito-inline</artifactId> |
| 357 | + <version>${mockito.version}</version> |
| 358 | + <scope>test</scope> |
| 359 | + </dependency> |
| 360 | + <!-- https://mvnrepository.com/artifact/io.netty/netty-common --> |
| 361 | + <dependency> |
| 362 | + <groupId>io.netty</groupId> |
| 363 | + <artifactId>netty-common</artifactId> |
| 364 | + <version>${netty.version}</version> |
342 | 365 | <scope>test</scope>
|
343 | 366 | </dependency>
|
| 367 | + <!-- https://mvnrepository.com/artifact/io.netty/netty-transport --> |
344 | 368 | <dependency>
|
345 |
| - <groupId>org.powermock</groupId> |
346 |
| - <artifactId>powermock-api-mockito2</artifactId> |
347 |
| - <version>${powermock.version}</version> |
| 369 | + <groupId>io.netty</groupId> |
| 370 | + <artifactId>netty-transport</artifactId> |
| 371 | + <version>${netty.version}</version> |
348 | 372 | <scope>test</scope>
|
349 | 373 | </dependency>
|
350 | 374 | </dependencies>
|
|
0 commit comments