|
52 | 52 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
53 | 53 | <java.version>21</java.version> |
54 | 54 | <!-- Non-minecraft related dependencies --> |
55 | | - <powermock.version>2.0.9</powermock.version> |
| 55 | + <junit.version>5.10.2</junit.version> |
| 56 | + <mockito.version>5.11.0</mockito.version> |
| 57 | + <mock-bukkit.version>v1.21-SNAPSHOT</mock-bukkit.version> |
56 | 58 | <!-- More visible way how to change dependency versions --> |
57 | | - <spigot.version>1.21.5-R0.1-SNAPSHOT</spigot.version> |
58 | | - <bentobox.version>3.7.4</bentobox.version> |
| 59 | + <paper.version>1.21.11-R0.1-SNAPSHOT</paper.version> |
| 60 | + <bentobox.version>3.10.2</bentobox.version> |
59 | 61 | <!-- Warps addon version --> |
60 | 62 | <warps.version>1.12.0</warps.version> |
61 | 63 | <!-- Visit addon version --> |
|
67 | 69 | <!-- Do not change unless you want different name for local builds. --> |
68 | 70 | <build.number>-LOCAL</build.number> |
69 | 71 | <!-- This allows to change between versions. --> |
70 | | - <build.version>2.22.0</build.version> |
| 72 | + <build.version>2.23.0</build.version> |
71 | 73 | <sonar.projectKey>BentoBoxWorld_Level</sonar.projectKey> |
72 | 74 | <sonar.organization>bentobox-world</sonar.organization> |
73 | 75 | <sonar.host.url>https://sonarcloud.io</sonar.host.url> |
|
124 | 126 |
|
125 | 127 | <repositories> |
126 | 128 | <repository> |
127 | | - <id>spigot-repo</id> |
128 | | - <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots</url> |
| 129 | + <id>jitpack.io</id> |
| 130 | + <url>https://jitpack.io</url> |
129 | 131 | </repository> |
130 | 132 | <repository> |
131 | | - <id>codemc</id> |
132 | | - <url>https://repo.codemc.org/repository/maven-snapshots/</url> |
| 133 | + <id>codemc-repo</id> |
| 134 | + <url>https://repo.codemc.org/repository/maven-public</url> |
133 | 135 | </repository> |
134 | 136 | <repository> |
135 | | - <id>codemc-repo</id> |
136 | | - <url>https://repo.codemc.org/repository/maven-public/</url> |
| 137 | + <id>papermc</id> |
| 138 | + <url>https://repo.papermc.io/repository/maven-public/</url> |
137 | 139 | </repository> |
138 | 140 | <repository> |
139 | | - <id>bentoboxworld</id> |
140 | | - <url>https://repo.codemc.org/repository/bentoboxworld/</url> |
| 141 | + <id>codemc</id> |
| 142 | + <url>https://repo.codemc.org/repository/maven-snapshots/</url> |
141 | 143 | </repository> |
142 | 144 | <repository> |
143 | | - <id>jitpack.io</id> |
144 | | - <url>https://jitpack.io</url> |
| 145 | + <id>bentoboxworld</id> |
| 146 | + <url>https://repo.codemc.org/repository/bentoboxworld/</url> |
145 | 147 | </repository> |
146 | 148 | <!--Wild Stacker repo --> |
147 | 149 | <repository> |
|
169 | 171 | <name>Oraxen Repository</name> |
170 | 172 | <url>https://repo.oraxen.com/releases</url> |
171 | 173 | </repository> |
| 174 | + <!-- Nexo repo --> |
| 175 | + <repository> |
| 176 | + <id>nexo</id> |
| 177 | + <name>Nexo Repository</name> |
| 178 | + <url>https://repo.nexomc.com/releases</url> |
| 179 | + </repository> |
172 | 180 | </repositories> |
173 | 181 |
|
174 | 182 | <dependencies> |
175 | | - <!-- Spigot API --> |
| 183 | + <!-- Mock Bukkit - used to mock the server in tests --> |
176 | 184 | <dependency> |
177 | | - <groupId>org.spigotmc</groupId> |
178 | | - <artifactId>spigot-api</artifactId> |
179 | | - <version>${spigot.version}</version> |
180 | | - <scope>provided</scope> |
181 | | - </dependency> |
182 | | - <!-- Mockito (Unit testing) --> |
| 185 | + <groupId>com.github.MockBukkit</groupId> |
| 186 | + <artifactId>MockBukkit</artifactId> |
| 187 | + <version>${mock-bukkit.version}</version> |
| 188 | + <scope>test</scope> |
| 189 | + </dependency> |
| 190 | + <!-- Mockito (Unit testing) This goes at the top to ensure the dependencies are accurate. --> |
| 191 | + <dependency> |
| 192 | + <groupId>org.junit.jupiter</groupId> |
| 193 | + <artifactId>junit-jupiter-api</artifactId> |
| 194 | + <version>${junit.version}</version> |
| 195 | + <scope>test</scope> |
| 196 | + </dependency> |
| 197 | + <dependency> |
| 198 | + <groupId>org.junit.jupiter</groupId> |
| 199 | + <artifactId>junit-jupiter-engine</artifactId> |
| 200 | + <version>${junit.version}</version> |
| 201 | + <scope>test</scope> |
| 202 | + </dependency> |
| 203 | + <dependency> |
| 204 | + <groupId>org.mockito</groupId> |
| 205 | + <artifactId>mockito-junit-jupiter</artifactId> |
| 206 | + <version>5.11.0</version> |
| 207 | + <scope>test</scope> |
| 208 | + </dependency> |
183 | 209 | <dependency> |
184 | 210 | <groupId>org.mockito</groupId> |
185 | 211 | <artifactId>mockito-core</artifactId> |
186 | | - <version>3.11.1</version> |
| 212 | + <version>${mockito.version}</version> |
187 | 213 | <scope>test</scope> |
188 | 214 | </dependency> |
| 215 | + <!-- Paper API --> |
189 | 216 | <dependency> |
190 | | - <groupId>org.powermock</groupId> |
191 | | - <artifactId>powermock-module-junit4</artifactId> |
192 | | - <version>${powermock.version}</version> |
193 | | - <scope>test</scope> |
194 | | - </dependency> |
195 | | - <dependency> |
196 | | - <groupId>org.powermock</groupId> |
197 | | - <artifactId>powermock-api-mockito2</artifactId> |
198 | | - <version>${powermock.version}</version> |
199 | | - <scope>test</scope> |
| 217 | + <groupId>io.papermc.paper</groupId> |
| 218 | + <artifactId>paper-api</artifactId> |
| 219 | + <version>${paper.version}</version> |
| 220 | + <scope>provided</scope> |
200 | 221 | </dependency> |
201 | 222 | <dependency> |
202 | 223 | <groupId>world.bentobox</groupId> |
203 | 224 | <artifactId>bentobox</artifactId> |
204 | | - <version>3.7.4-SNAPSHOT</version> |
| 225 | + <version>3.10.0</version> |
205 | 226 | </dependency> |
206 | 227 | <dependency> |
207 | 228 | <groupId>world.bentobox</groupId> |
|
262 | 283 | <version>4.0.10</version> |
263 | 284 | <scope>provided</scope> |
264 | 285 | </dependency> |
| 286 | + <!-- Nexo --> |
| 287 | + <dependency> |
| 288 | + <groupId>com.nexomc</groupId> |
| 289 | + <artifactId>nexo</artifactId> |
| 290 | + <version>1.19.1</version> |
| 291 | + <exclusions> |
| 292 | + <exclusion> |
| 293 | + <groupId>dev.triumphteam</groupId> |
| 294 | + <artifactId>triumph-gui</artifactId> |
| 295 | + </exclusion> |
| 296 | + </exclusions> |
| 297 | + <scope>provided</scope> |
| 298 | + </dependency> |
265 | 299 | <!-- Oraxen --> |
266 | 300 | <dependency> |
267 | 301 | <groupId>io.th0rgal</groupId> |
|
354 | 388 | <plugin> |
355 | 389 | <groupId>org.apache.maven.plugins</groupId> |
356 | 390 | <artifactId>maven-compiler-plugin</artifactId> |
357 | | - <version>3.13.0</version> |
| 391 | + <version>3.14.1</version> |
358 | 392 | <configuration> |
359 | 393 | <release>${java.version}</release> |
360 | 394 | </configuration> |
361 | 395 | </plugin> |
362 | 396 | <plugin> |
363 | 397 | <groupId>org.apache.maven.plugins</groupId> |
364 | 398 | <artifactId>maven-surefire-plugin</artifactId> |
365 | | - <version>3.5.2</version> |
| 399 | + <version>3.5.4</version> |
366 | 400 | <configuration> |
367 | 401 | <argLine> |
368 | 402 | ${argLine} |
| 403 | + -XX:+EnableDynamicAgentLoading |
369 | 404 | --add-opens java.base/java.lang=ALL-UNNAMED |
370 | 405 | --add-opens java.base/java.math=ALL-UNNAMED |
371 | 406 | --add-opens java.base/java.io=ALL-UNNAMED |
|
478 | 513 | <plugin> |
479 | 514 | <groupId>org.jacoco</groupId> |
480 | 515 | <artifactId>jacoco-maven-plugin</artifactId> |
481 | | - <version>0.8.10</version> |
| 516 | + <version>0.8.13</version> |
482 | 517 | <configuration> |
483 | 518 | <append>true</append> |
484 | 519 | <excludes> |
|
0 commit comments