|
32 | 32 | <properties>
|
33 | 33 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
34 | 34 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
35 |
| - <java.version>17</java.version> |
| 35 | + <java.version>21</java.version> |
36 | 36 | <!-- More visible way how to change dependency versions -->
|
37 |
| - <spigot.version>1.18-R0.1-SNAPSHOT</spigot.version> |
38 |
| - <bentobox.version>1.20.0</bentobox.version> |
| 37 | + <spigot.version>1.21.3-R0.1-SNAPSHOT</spigot.version> |
| 38 | + <bentobox.version>2.7.1-SNAPSHOT</bentobox.version> |
39 | 39 | <level.version>2.5.0</level.version>
|
40 | 40 | <bank.version>1.4.0</bank.version>
|
| 41 | + <!-- Mocks --> |
| 42 | + <powermock.version>2.0.9</powermock.version> |
41 | 43 | <!-- Panel Utils version -->
|
42 |
| - <panelutils.version>1.0.0</panelutils.version> |
| 44 | + <panelutils.version>1.2.0</panelutils.version> |
43 | 45 | <!-- Vault API version -->
|
44 | 46 | <vault.version>1.7</vault.version>
|
45 | 47 | <!-- Revision variable removes warning about dynamic version -->
|
|
85 | 87 | </profiles>
|
86 | 88 |
|
87 | 89 | <distributionManagement>
|
88 |
| - <snapshotRepository> |
89 |
| - <id>codemc-snapshots</id> |
90 |
| - <url>https://repo.codemc.io/repository/maven-snapshots</url> |
91 |
| - </snapshotRepository> |
92 | 90 | <repository>
|
93 |
| - <id>codemc-releases</id> |
94 |
| - <url>https://repo.codemc.io/repository/maven-releases</url> |
| 91 | + <id>bentoboxworld</id> |
| 92 | + <url>https://repo.codemc.io/repository/bentoboxworld/</url> |
95 | 93 | </repository>
|
96 | 94 | </distributionManagement>
|
97 | 95 |
|
|
108 | 106 | <url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
|
109 | 107 | </repository>
|
110 | 108 | <repository>
|
111 |
| - <id>codemc-repo</id> |
112 |
| - <url>https://repo.codemc.io/repository/maven-public/</url> |
| 109 | + <id>bentoboxworld</id> |
| 110 | + <url>https://repo.codemc.io/repository/bentoboxworld/</url> |
113 | 111 | </repository>
|
114 |
| - <!--Vault Repo is down. --> |
115 | 112 | <repository>
|
116 |
| - <id>vault-repo</id> |
117 |
| - <url>https://nexus.hc.to/content/repositories/pub_releases</url> |
| 113 | + <id>codemc-repo</id> |
| 114 | + <url>https://repo.codemc.io/repository/maven-public/</url> |
118 | 115 | </repository>
|
| 116 | + <!--Vault Repo --> |
119 | 117 | <repository>
|
120 | 118 | <id>jitpack.io</id>
|
121 | 119 | <url>https://jitpack.io</url>
|
|
163 | 161 | <artifactId>panelutils</artifactId>
|
164 | 162 | <version>${panelutils.version}</version>
|
165 | 163 | </dependency>
|
| 164 | + <!-- Mockito (Unit testing) --> |
| 165 | + <dependency> |
| 166 | + <groupId>org.mockito</groupId> |
| 167 | + <artifactId>mockito-core</artifactId> |
| 168 | + <version>3.11.1</version> |
| 169 | + <scope>test</scope> |
| 170 | + </dependency> |
| 171 | + <dependency> |
| 172 | + <groupId>org.powermock</groupId> |
| 173 | + <artifactId>powermock-module-junit4</artifactId> |
| 174 | + <version>${powermock.version}</version> |
| 175 | + <scope>test</scope> |
| 176 | + </dependency> |
| 177 | + <dependency> |
| 178 | + <groupId>org.powermock</groupId> |
| 179 | + <artifactId>powermock-api-mockito2</artifactId> |
| 180 | + <version>${powermock.version}</version> |
| 181 | + <scope>test</scope> |
| 182 | + </dependency> |
166 | 183 | </dependencies>
|
167 | 184 |
|
168 | 185 | <build>
|
| 186 | + <!-- By default ${revision} is ${build.version}-SNAPSHOT --> |
| 187 | + <!-- If GIT_BRANCH variable is set to origin/master, then it will |
| 188 | + be only ${build.version}. --> |
| 189 | + |
| 190 | + <!-- By default ${build.number} is -LOCAL. --> |
| 191 | + <!-- If the BUILD_NUMBER variable is set, then it will be -b[number]. --> |
| 192 | + <!-- If GIT_BRANCH variable is set to origin/master, then it will |
| 193 | + be the empty string. --> |
169 | 194 | <finalName>${project.name}-${revision}${build.number}</finalName>
|
170 | 195 |
|
171 | 196 | <defaultGoal>clean package</defaultGoal>
|
|
178 | 203 | <directory>src/main/resources/locales</directory>
|
179 | 204 | <targetPath>./locales</targetPath>
|
180 | 205 | <filtering>false</filtering>
|
181 |
| - <includes> |
182 |
| - <include>*.yml</include> |
183 |
| - </includes> |
184 | 206 | </resource>
|
185 | 207 | </resources>
|
186 |
| - <plugins> |
| 208 | + <plugins> |
187 | 209 | <plugin>
|
188 | 210 | <groupId>org.apache.maven.plugins</groupId>
|
189 | 211 | <artifactId>maven-clean-plugin</artifactId>
|
190 |
| - <version>3.1.0</version> |
| 212 | + <version>3.4.0</version> |
191 | 213 | </plugin>
|
192 | 214 | <plugin>
|
193 | 215 | <groupId>org.apache.maven.plugins</groupId>
|
194 | 216 | <artifactId>maven-resources-plugin</artifactId>
|
195 |
| - <version>3.1.0</version> |
| 217 | + <version>3.3.1</version> |
196 | 218 | </plugin>
|
197 | 219 | <plugin>
|
198 | 220 | <groupId>org.apache.maven.plugins</groupId>
|
199 | 221 | <artifactId>maven-compiler-plugin</artifactId>
|
200 |
| - <version>3.8.1</version> |
| 222 | + <version>3.13.0</version> |
201 | 223 | <configuration>
|
202 | 224 | <release>${java.version}</release>
|
| 225 | + <!-- <source>${java.version}</source> <target>${java.version}</target> --> |
203 | 226 | </configuration>
|
204 | 227 | </plugin>
|
205 | 228 | <plugin>
|
206 | 229 | <groupId>org.apache.maven.plugins</groupId>
|
207 | 230 | <artifactId>maven-surefire-plugin</artifactId>
|
208 |
| - <version>3.0.0-M5</version> |
| 231 | + <version>3.5.2</version> |
209 | 232 | <configuration>
|
210 | 233 | <argLine>
|
211 | 234 | ${argLine}
|
|
242 | 265 | <plugin>
|
243 | 266 | <groupId>org.apache.maven.plugins</groupId>
|
244 | 267 | <artifactId>maven-jar-plugin</artifactId>
|
245 |
| - <version>3.1.0</version> |
| 268 | + <version>3.4.2</version> |
246 | 269 | </plugin>
|
247 | 270 | <plugin>
|
248 | 271 | <groupId>org.apache.maven.plugins</groupId>
|
249 | 272 | <artifactId>maven-javadoc-plugin</artifactId>
|
250 |
| - <version>3.3.0</version> |
| 273 | + <version>3.11.1</version> |
251 | 274 | <configuration>
|
252 |
| - <source>16</source> |
253 |
| - <show>private</show> |
| 275 | + <doclint>none</doclint> <!-- Turnoff all checks --> |
254 | 276 | <failOnError>false</failOnError>
|
255 |
| - <additionalJOption>-Xdoclint:none</additionalJOption> |
256 |
| - <!-- To compile with Java 11, this tag may be required --> |
257 |
| - <!-- <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable> --> |
| 277 | + <javadocExecutable>${java.home}/bin/javadoc</javadocExecutable> |
| 278 | + <source>17</source> |
258 | 279 | </configuration>
|
259 | 280 | <executions>
|
260 | 281 | <execution>
|
261 | 282 | <id>attach-javadocs</id>
|
262 |
| - <phase>install</phase> |
263 | 283 | <goals>
|
264 | 284 | <goal>jar</goal>
|
265 | 285 | </goals>
|
|
269 | 289 | <plugin>
|
270 | 290 | <groupId>org.apache.maven.plugins</groupId>
|
271 | 291 | <artifactId>maven-source-plugin</artifactId>
|
272 |
| - <version>3.0.1</version> |
| 292 | + <version>3.3.1</version> |
273 | 293 | <executions>
|
274 | 294 | <execution>
|
275 | 295 | <id>attach-sources</id>
|
|
279 | 299 | </execution>
|
280 | 300 | </executions>
|
281 | 301 | </plugin>
|
282 |
| - <plugin> |
283 |
| - <groupId>org.apache.maven.plugins</groupId> |
284 |
| - <artifactId>maven-shade-plugin</artifactId> |
285 |
| - <version>3.3.1-SNAPSHOT</version> |
286 |
| - <configuration> |
287 |
| - <minimizeJar>true</minimizeJar> |
288 |
| - <artifactSet> |
289 |
| - <includes> |
290 |
| - <include>lv.id.bonne:panelutils:*</include> |
291 |
| - </includes> |
292 |
| - </artifactSet> |
293 |
| - <transformers> |
294 |
| - <!-- Add a transformer to exclude any other manifest files (possibly from dependencies). --> |
295 |
| - <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer"> |
296 |
| - <resource>MANIFEST.MF</resource> |
297 |
| - </transformer> |
298 |
| - <!-- Add a transformer to include your custom manifest file. --> |
299 |
| - <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> |
300 |
| - <resource>META-INF/MANIFEST.MF</resource> |
301 |
| - <file>src/main/resources/META-INF/MANIFEST.MF</file> |
302 |
| - </transformer> |
303 |
| - </transformers> |
304 |
| - </configuration> |
305 |
| - <executions> |
306 |
| - <execution> |
307 |
| - <phase>package</phase> |
308 |
| - <goals> |
309 |
| - <goal>shade</goal> |
310 |
| - </goals> |
311 |
| - </execution> |
312 |
| - </executions> |
313 |
| - </plugin> |
314 | 302 | <plugin>
|
315 | 303 | <groupId>org.apache.maven.plugins</groupId>
|
316 | 304 | <artifactId>maven-install-plugin</artifactId>
|
317 |
| - <version>2.5.2</version> |
| 305 | + <version>3.1.3</version> |
318 | 306 | </plugin>
|
319 | 307 | <plugin>
|
320 | 308 | <groupId>org.apache.maven.plugins</groupId>
|
321 | 309 | <artifactId>maven-deploy-plugin</artifactId>
|
322 |
| - <version>2.8.2</version> |
323 |
| - <executions> |
324 |
| - <execution> |
325 |
| - <id>default-deploy</id> |
326 |
| - <phase>deploy</phase> |
327 |
| - <goals> |
328 |
| - <goal>deploy</goal> |
329 |
| - </goals> |
330 |
| - </execution> |
331 |
| - </executions> |
| 310 | + <version>3.1.3</version> |
332 | 311 | </plugin>
|
333 | 312 | <plugin>
|
334 | 313 | <groupId>org.jacoco</groupId>
|
335 | 314 | <artifactId>jacoco-maven-plugin</artifactId>
|
336 |
| - <version>0.8.7</version> |
| 315 | + <version>0.8.10</version> |
337 | 316 | <configuration>
|
338 | 317 | <append>true</append>
|
339 | 318 | <excludes>
|
340 | 319 | <!-- This is required to prevent Jacoco from adding
|
341 | 320 | synthetic fields to a JavaBean class (causes errors in testing) -->
|
342 | 321 | <exclude>**/*Names*</exclude>
|
| 322 | + <!-- Prevents the Material is too large to mock error --> |
| 323 | + <exclude>org/bukkit/Material*</exclude> |
343 | 324 | </excludes>
|
344 | 325 | </configuration>
|
345 | 326 | <executions>
|
|
364 | 345 | </plugin>
|
365 | 346 | </plugins>
|
366 | 347 | </build>
|
367 |
| - |
368 | 348 | </project>
|
0 commit comments