Skip to content

Commit 6105448

Browse files
committed
Update dependencies
Update all dependencies to the latest version and use properties for all versions for easy updating.
1 parent 681b0aa commit 6105448

File tree

1 file changed

+40
-23
lines changed

1 file changed

+40
-23
lines changed

pom.xml

Lines changed: 40 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3-
43
<modelVersion>4.0.0</modelVersion>
54
<groupId>com.github.package-url</groupId>
65
<artifactId>packageurl-java</artifactId>
@@ -56,23 +55,33 @@
5655
<max.jdk.version>18</max.jdk.version>
5756

5857
<!-- Maven Plugin Versions -->
59-
<maven.clean.plugin.version>2.5</maven.clean.plugin.version>
58+
<maven.clean.plugin.version>3.4.1</maven.clean.plugin.version>
6059
<maven.compiler.plugin.version>3.14.0</maven.compiler.plugin.version>
61-
<maven.deploy.plugin.version>2.7</maven.deploy.plugin.version>
62-
<maven.enforcer.plugin.version>3.4.1</maven.enforcer.plugin.version>
63-
<maven.install.plugin.version>2.4</maven.install.plugin.version>
64-
<maven.jar.plugin.version>3.3.0</maven.jar.plugin.version>
65-
<maven.javadoc.plugin.version>3.6.3</maven.javadoc.plugin.version>
66-
<maven.release.plugin.version>3.0.1</maven.release.plugin.version>
67-
<maven.resources.plugin.version>2.6</maven.resources.plugin.version>
68-
<maven.site.plugin.version>3.3</maven.site.plugin.version>
69-
<maven.source.plugin.version>3.3.0</maven.source.plugin.version>
60+
<maven.deploy.plugin.version>3.1.4</maven.deploy.plugin.version>
61+
<maven.enforcer.plugin.version>3.5.0</maven.enforcer.plugin.version>
62+
<maven.install.plugin.version>3.1.4</maven.install.plugin.version>
63+
<maven.jar.plugin.version>3.4.2</maven.jar.plugin.version>
64+
<maven.javadoc.plugin.version>3.11.2</maven.javadoc.plugin.version>
65+
<maven.release.plugin.version>3.1.1</maven.release.plugin.version>
66+
<maven.resources.plugin.version>3.3.1</maven.resources.plugin.version>
67+
<maven.site.plugin.version>3.21.0</maven.site.plugin.version>
68+
<maven.source.plugin.version>3.3.1</maven.source.plugin.version>
7069
<maven.surefire.plugin.version>3.5.2</maven.surefire.plugin.version>
7170
<!-- Maven build plugins for quality checks -->
7271
<error.prone.core.version>2.36.0</error.prone.core.version>
73-
<jacoco.maven.plugin.version>0.8.11</jacoco.maven.plugin.version>
74-
<spotbugs.maven.plugin.version>4.8.3.1</spotbugs.maven.plugin.version>
75-
<com.github.spotbugs.version>4.8.3</com.github.spotbugs.version>
72+
<jacoco.maven.plugin.version>0.8.12</jacoco.maven.plugin.version>
73+
<spotbugs.maven.plugin.version>4.9.2.0</spotbugs.maven.plugin.version>
74+
<com.github.spotbugs.version>4.9.2</com.github.spotbugs.version>
75+
<cyclonedx-maven-plugin.version>2.9.1</cyclonedx-maven-plugin.version>
76+
<maven-enforcer-plugin.version>3.5.0</maven-enforcer-plugin.version>
77+
<maven-gpg-plugin.version>3.2.7</maven-gpg-plugin.version>
78+
<jakarta.validation-api.version>3.1.1</jakarta.validation-api.version>
79+
<junit.version>4.13.2</junit.version>
80+
<json.version>20250107</json.version>
81+
<junit.version>4.13.2</junit.version>
82+
<maven-enforcer-plugin.version>3.5.0</maven-enforcer-plugin.version>
83+
<maven-gpg-plugin.version>3.2.7</maven-gpg-plugin.version>
84+
<versions-maven-plugin.version>2.18.0</versions-maven-plugin.version>
7685
</properties>
7786

7887
<scm>
@@ -107,20 +116,20 @@
107116
<dependency>
108117
<groupId>jakarta.validation</groupId>
109118
<artifactId>jakarta.validation-api</artifactId>
110-
<version>3.1.1</version>
119+
<version>${jakarta.validation-api.version}</version>
111120
<optional>true</optional>
112121
<scope>provided</scope>
113122
</dependency>
114123
<dependency>
115124
<groupId>junit</groupId>
116125
<artifactId>junit</artifactId>
117-
<version>4.13.2</version>
126+
<version>${junit.version}</version>
118127
<scope>test</scope>
119128
</dependency>
120129
<dependency>
121130
<groupId>org.json</groupId>
122131
<artifactId>json</artifactId>
123-
<version>20240303</version>
132+
<version>${json.version}</version>
124133
<scope>test</scope>
125134
</dependency>
126135
</dependencies>
@@ -153,6 +162,11 @@
153162
<artifactId>maven-install-plugin</artifactId>
154163
<version>${maven.install.plugin.version}</version>
155164
</plugin>
165+
<plugin>
166+
<groupId>org.apache.maven.plugins</groupId>
167+
<artifactId>maven-gpg-plugin</artifactId>
168+
<version>${maven-gpg-plugin.version}</version>
169+
</plugin>
156170
<plugin>
157171
<groupId>org.apache.maven.plugins</groupId>
158172
<artifactId>maven-jar-plugin</artifactId>
@@ -257,6 +271,14 @@
257271
</dependency>
258272
</dependencies>
259273
</plugin>
274+
<plugin>
275+
<groupId>org.codehaus.mojo</groupId>
276+
<artifactId>versions-maven-plugin</artifactId>
277+
<version>${versions-maven-plugin.version}</version>
278+
<configuration>
279+
<ignoredVersions>(?i).+[-.](alpha|beta|cr|dev|m|rc)([-.]?\d+)?</ignoredVersions>
280+
</configuration>
281+
</plugin>
260282
<plugin>
261283
<groupId>org.jacoco</groupId>
262284
<artifactId>jacoco-maven-plugin</artifactId>
@@ -306,7 +328,7 @@
306328
<plugin>
307329
<groupId>org.cyclonedx</groupId>
308330
<artifactId>cyclonedx-maven-plugin</artifactId>
309-
<version>2.9.1</version>
331+
<version>${cyclonedx-maven-plugin.version}</version>
310332
<configuration>
311333
<projectType>library</projectType>
312334
</configuration>
@@ -331,7 +353,6 @@
331353
</build>
332354

333355
<profiles>
334-
335356
<!--
336357
~ Profile to run tests using JRE 8.
337358
~
@@ -345,7 +366,6 @@
345366
<exists>${user.home}/.m2/toolchains.xml</exists>
346367
</file>
347368
</activation>
348-
349369
<build>
350370
<plugins>
351371
<plugin>
@@ -365,7 +385,6 @@
365385
</plugins>
366386
</build>
367387
</profile>
368-
369388
<profile>
370389
<id>release</id>
371390
<activation>
@@ -394,7 +413,6 @@
394413
<plugin>
395414
<groupId>org.apache.maven.plugins</groupId>
396415
<artifactId>maven-gpg-plugin</artifactId>
397-
<version>3.2.7</version>
398416
<executions>
399417
<execution>
400418
<id>sign-artifacts</id>
@@ -409,5 +427,4 @@
409427
</build>
410428
</profile>
411429
</profiles>
412-
413430
</project>

0 commit comments

Comments
 (0)