Skip to content

Commit eda155c

Browse files
committed
Update versions in POM
1 parent 1e3d2e4 commit eda155c

File tree

1 file changed

+39
-57
lines changed

1 file changed

+39
-57
lines changed

pom.xml

+39-57
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<properties>
3333
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3434
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
35-
<java.version>17</java.version>
35+
<java.version>21</java.version>
3636
<!-- More visible way how to change dependency versions -->
3737
<spigot.version>1.21.3-R0.1-SNAPSHOT</spigot.version>
3838
<bentobox.version>2.7.1-SNAPSHOT</bentobox.version>
@@ -183,6 +183,14 @@
183183
</dependencies>
184184

185185
<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. -->
186194
<finalName>${project.name}-${revision}${build.number}</finalName>
187195

188196
<defaultGoal>clean package</defaultGoal>
@@ -195,9 +203,6 @@
195203
<directory>src/main/resources/locales</directory>
196204
<targetPath>./locales</targetPath>
197205
<filtering>false</filtering>
198-
<includes>
199-
<include>*.yml</include>
200-
</includes>
201206
</resource>
202207
</resources>
203208
<plugins>
@@ -210,18 +215,14 @@
210215
<groupId>org.apache.maven.plugins</groupId>
211216
<artifactId>maven-resources-plugin</artifactId>
212217
<version>3.2.0</version>
213-
<configuration>
214-
<nonFilteredFileExtensions>
215-
<nonFilteredFileExtension>blu</nonFilteredFileExtension>
216-
</nonFilteredFileExtensions>
217-
</configuration>
218218
</plugin>
219219
<plugin>
220220
<groupId>org.apache.maven.plugins</groupId>
221221
<artifactId>maven-compiler-plugin</artifactId>
222-
<version>3.8.1</version>
222+
<version>3.10.1</version>
223223
<configuration>
224-
<release>${java.version}</release>
224+
<source>${java.version}</source>
225+
<target>${java.version}</target>
225226
</configuration>
226227
</plugin>
227228
<plugin>
@@ -235,19 +236,26 @@
235236
--add-opens java.base/java.math=ALL-UNNAMED
236237
--add-opens java.base/java.io=ALL-UNNAMED
237238
--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
239241
--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
242246
--add-opens java.base/sun.nio.ch=ALL-UNNAMED
243247
--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
245250
--add-opens java.base/sun.nio.fs=ALL-UNNAMED
246251
--add-opens java.base/sun.nio.cs=ALL-UNNAMED
247252
--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
251259
--add-opens java.base/java.lang.ref=ALL-UNNAMED
252260
--add-opens java.base/java.util.jar=ALL-UNNAMED
253261
--add-opens java.base/java.util.zip=ALL-UNNAMED
@@ -262,8 +270,9 @@
262270
<plugin>
263271
<groupId>org.apache.maven.plugins</groupId>
264272
<artifactId>maven-javadoc-plugin</artifactId>
265-
<version>3.3.0</version>
273+
<version>3.4.0</version>
266274
<configuration>
275+
<show>public</show>
267276
<failOnError>false</failOnError>
268277
<additionalJOption>-Xdoclint:none</additionalJOption>
269278
</configuration>
@@ -292,14 +301,14 @@
292301
<plugin>
293302
<groupId>org.apache.maven.plugins</groupId>
294303
<artifactId>maven-install-plugin</artifactId>
295-
<version>3.0.0-M1</version>
304+
<version>2.5.2</version>
296305
</plugin>
297306
<plugin>
298307
<groupId>org.apache.maven.plugins</groupId>
299308
<artifactId>maven-deploy-plugin</artifactId>
300-
<version>3.0.0-M1</version>
309+
<version>2.8.2</version>
301310
</plugin>
302-
<plugin>
311+
<plugin>
303312
<groupId>org.jacoco</groupId>
304313
<artifactId>jacoco-maven-plugin</artifactId>
305314
<version>0.8.10</version>
@@ -315,52 +324,25 @@
315324
</configuration>
316325
<executions>
317326
<execution>
318-
<id>pre-unit-test</id>
327+
<id>prepare-agent</id>
319328
<goals>
320329
<goal>prepare-agent</goal>
321330
</goals>
322331
</execution>
323332
<execution>
324-
<id>post-unit-test</id>
333+
<id>report</id>
325334
<goals>
326335
<goal>report</goal>
327336
</goals>
337+
<configuration>
338+
<formats>
339+
<format>XML</format>
340+
</formats>
341+
</configuration>
328342
</execution>
329343
</executions>
330344
</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+
363346
</plugins>
364347
</build>
365-
366348
</project>

0 commit comments

Comments
 (0)