|
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 | 37 | <spigot.version>1.21.3-R0.1-SNAPSHOT</spigot.version>
|
38 | 38 | <bentobox.version>2.7.1-SNAPSHOT</bentobox.version>
|
|
183 | 183 | </dependencies>
|
184 | 184 |
|
185 | 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. --> |
186 | 194 | <finalName>${project.name}-${revision}${build.number}</finalName>
|
187 | 195 |
|
188 | 196 | <defaultGoal>clean package</defaultGoal>
|
|
195 | 203 | <directory>src/main/resources/locales</directory>
|
196 | 204 | <targetPath>./locales</targetPath>
|
197 | 205 | <filtering>false</filtering>
|
198 |
| - <includes> |
199 |
| - <include>*.yml</include> |
200 |
| - </includes> |
201 | 206 | </resource>
|
202 | 207 | </resources>
|
203 | 208 | <plugins>
|
|
210 | 215 | <groupId>org.apache.maven.plugins</groupId>
|
211 | 216 | <artifactId>maven-resources-plugin</artifactId>
|
212 | 217 | <version>3.2.0</version>
|
213 |
| - <configuration> |
214 |
| - <nonFilteredFileExtensions> |
215 |
| - <nonFilteredFileExtension>blu</nonFilteredFileExtension> |
216 |
| - </nonFilteredFileExtensions> |
217 |
| - </configuration> |
218 | 218 | </plugin>
|
219 | 219 | <plugin>
|
220 | 220 | <groupId>org.apache.maven.plugins</groupId>
|
221 | 221 | <artifactId>maven-compiler-plugin</artifactId>
|
222 |
| - <version>3.8.1</version> |
| 222 | + <version>3.10.1</version> |
223 | 223 | <configuration>
|
224 |
| - <release>${java.version}</release> |
| 224 | + <source>${java.version}</source> |
| 225 | + <target>${java.version}</target> |
225 | 226 | </configuration>
|
226 | 227 | </plugin>
|
227 | 228 | <plugin>
|
|
235 | 236 | --add-opens java.base/java.math=ALL-UNNAMED
|
236 | 237 | --add-opens java.base/java.io=ALL-UNNAMED
|
237 | 238 | --add-opens java.base/java.util=ALL-UNNAMED
|
238 |
| - --add-opens java.base/java.util.stream=ALL-UNNAMED |
| 239 | + --add-opens |
| 240 | + java.base/java.util.stream=ALL-UNNAMED |
239 | 241 | --add-opens java.base/java.text=ALL-UNNAMED
|
240 |
| - --add-opens java.base/java.util.regex=ALL-UNNAMED |
241 |
| - --add-opens java.base/java.nio.channels.spi=ALL-UNNAMED |
| 242 | + --add-opens |
| 243 | + java.base/java.util.regex=ALL-UNNAMED |
| 244 | + --add-opens |
| 245 | + java.base/java.nio.channels.spi=ALL-UNNAMED |
242 | 246 | --add-opens java.base/sun.nio.ch=ALL-UNNAMED
|
243 | 247 | --add-opens java.base/java.net=ALL-UNNAMED
|
244 |
| - --add-opens java.base/java.util.concurrent=ALL-UNNAMED |
| 248 | + --add-opens |
| 249 | + java.base/java.util.concurrent=ALL-UNNAMED |
245 | 250 | --add-opens java.base/sun.nio.fs=ALL-UNNAMED
|
246 | 251 | --add-opens java.base/sun.nio.cs=ALL-UNNAMED
|
247 | 252 | --add-opens java.base/java.nio.file=ALL-UNNAMED
|
248 |
| - --add-opens java.base/java.nio.charset=ALL-UNNAMED |
249 |
| - --add-opens java.base/java.lang.reflect=ALL-UNNAMED |
250 |
| - --add-opens java.logging/java.util.logging=ALL-UNNAMED |
| 253 | + --add-opens |
| 254 | + java.base/java.nio.charset=ALL-UNNAMED |
| 255 | + --add-opens |
| 256 | + java.base/java.lang.reflect=ALL-UNNAMED |
| 257 | + --add-opens |
| 258 | + java.logging/java.util.logging=ALL-UNNAMED |
251 | 259 | --add-opens java.base/java.lang.ref=ALL-UNNAMED
|
252 | 260 | --add-opens java.base/java.util.jar=ALL-UNNAMED
|
253 | 261 | --add-opens java.base/java.util.zip=ALL-UNNAMED
|
|
262 | 270 | <plugin>
|
263 | 271 | <groupId>org.apache.maven.plugins</groupId>
|
264 | 272 | <artifactId>maven-javadoc-plugin</artifactId>
|
265 |
| - <version>3.3.0</version> |
| 273 | + <version>3.4.0</version> |
266 | 274 | <configuration>
|
| 275 | + <show>public</show> |
267 | 276 | <failOnError>false</failOnError>
|
268 | 277 | <additionalJOption>-Xdoclint:none</additionalJOption>
|
269 | 278 | </configuration>
|
|
292 | 301 | <plugin>
|
293 | 302 | <groupId>org.apache.maven.plugins</groupId>
|
294 | 303 | <artifactId>maven-install-plugin</artifactId>
|
295 |
| - <version>3.0.0-M1</version> |
| 304 | + <version>2.5.2</version> |
296 | 305 | </plugin>
|
297 | 306 | <plugin>
|
298 | 307 | <groupId>org.apache.maven.plugins</groupId>
|
299 | 308 | <artifactId>maven-deploy-plugin</artifactId>
|
300 |
| - <version>3.0.0-M1</version> |
| 309 | + <version>2.8.2</version> |
301 | 310 | </plugin>
|
302 |
| - <plugin> |
| 311 | + <plugin> |
303 | 312 | <groupId>org.jacoco</groupId>
|
304 | 313 | <artifactId>jacoco-maven-plugin</artifactId>
|
305 | 314 | <version>0.8.10</version>
|
|
315 | 324 | </configuration>
|
316 | 325 | <executions>
|
317 | 326 | <execution>
|
318 |
| - <id>pre-unit-test</id> |
| 327 | + <id>prepare-agent</id> |
319 | 328 | <goals>
|
320 | 329 | <goal>prepare-agent</goal>
|
321 | 330 | </goals>
|
322 | 331 | </execution>
|
323 | 332 | <execution>
|
324 |
| - <id>post-unit-test</id> |
| 333 | + <id>report</id> |
325 | 334 | <goals>
|
326 | 335 | <goal>report</goal>
|
327 | 336 | </goals>
|
| 337 | + <configuration> |
| 338 | + <formats> |
| 339 | + <format>XML</format> |
| 340 | + </formats> |
| 341 | + </configuration> |
328 | 342 | </execution>
|
329 | 343 | </executions>
|
330 | 344 | </plugin>
|
331 |
| - <plugin> |
332 |
| - <groupId>org.apache.maven.plugins</groupId> |
333 |
| - <artifactId>maven-shade-plugin</artifactId> |
334 |
| - <version>3.3.1-SNAPSHOT</version> |
335 |
| - <configuration> |
336 |
| - <minimizeJar>true</minimizeJar> |
337 |
| - <artifactSet> |
338 |
| - <includes> |
339 |
| - <include>lv.id.bonne:panelutils:*</include> |
340 |
| - </includes> |
341 |
| - </artifactSet> |
342 |
| - <transformers> |
343 |
| - <!-- Add a transformer to exclude any other manifest files (possibly from dependencies). --> |
344 |
| - <transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer"> |
345 |
| - <resource>MANIFEST.MF</resource> |
346 |
| - </transformer> |
347 |
| - <!-- Add a transformer to include your custom manifest file. --> |
348 |
| - <transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> |
349 |
| - <resource>META-INF/MANIFEST.MF</resource> |
350 |
| - <file>src/main/resources/META-INF/MANIFEST.MF</file> |
351 |
| - </transformer> |
352 |
| - </transformers> |
353 |
| - </configuration> |
354 |
| - <executions> |
355 |
| - <execution> |
356 |
| - <phase>package</phase> |
357 |
| - <goals> |
358 |
| - <goal>shade</goal> |
359 |
| - </goals> |
360 |
| - </execution> |
361 |
| - </executions> |
362 |
| - </plugin> |
| 345 | + |
363 | 346 | </plugins>
|
364 | 347 | </build>
|
365 |
| - |
366 | 348 | </project>
|
0 commit comments