Skip to content

Commit b280fd6

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

File tree

1 file changed

+39
-27
lines changed

1 file changed

+39
-27
lines changed

pom.xml

Lines changed: 39 additions & 27 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,25 +55,32 @@
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>
76-
<!-- Dependency versions -->
77-
<junit.version>5.12.0</junit.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+
<json.version>20250107</json.version>
80+
<junit-bom.version>5.12.0</junit-bom.version>
81+
<maven-enforcer-plugin.version>3.5.0</maven-enforcer-plugin.version>
82+
<maven-gpg-plugin.version>3.2.7</maven-gpg-plugin.version>
83+
<versions-maven-plugin.version>2.18.0</versions-maven-plugin.version>
7884
</properties>
7985

8086
<scm>
@@ -107,24 +113,22 @@
107113

108114
<dependencyManagement>
109115
<dependencies>
110-
111116
<!-- BOMs at the end, so they don't overwrite the dependencies above -->
112117
<dependency>
113118
<groupId>org.junit</groupId>
114119
<artifactId>junit-bom</artifactId>
115-
<version>${junit.version}</version>
120+
<version>${junit-bom.version}</version>
116121
<type>pom</type>
117122
<scope>import</scope>
118123
</dependency>
119-
120124
</dependencies>
121125
</dependencyManagement>
122126

123127
<dependencies>
124128
<dependency>
125129
<groupId>jakarta.validation</groupId>
126130
<artifactId>jakarta.validation-api</artifactId>
127-
<version>3.1.1</version>
131+
<version>${jakarta.validation-api.version}</version>
128132
<optional>true</optional>
129133
<scope>provided</scope>
130134
</dependency>
@@ -136,7 +140,7 @@
136140
<dependency>
137141
<groupId>org.json</groupId>
138142
<artifactId>json</artifactId>
139-
<version>20240303</version>
143+
<version>${json.version}</version>
140144
<scope>test</scope>
141145
</dependency>
142146
<dependency>
@@ -174,6 +178,11 @@
174178
<artifactId>maven-install-plugin</artifactId>
175179
<version>${maven.install.plugin.version}</version>
176180
</plugin>
181+
<plugin>
182+
<groupId>org.apache.maven.plugins</groupId>
183+
<artifactId>maven-gpg-plugin</artifactId>
184+
<version>${maven-gpg-plugin.version}</version>
185+
</plugin>
177186
<plugin>
178187
<groupId>org.apache.maven.plugins</groupId>
179188
<artifactId>maven-jar-plugin</artifactId>
@@ -278,6 +287,14 @@
278287
</dependency>
279288
</dependencies>
280289
</plugin>
290+
<plugin>
291+
<groupId>org.codehaus.mojo</groupId>
292+
<artifactId>versions-maven-plugin</artifactId>
293+
<version>${versions-maven-plugin.version}</version>
294+
<configuration>
295+
<ignoredVersions>(?i).+[-.](alpha|beta|cr|dev|m|rc)([-.]?\d+)?</ignoredVersions>
296+
</configuration>
297+
</plugin>
281298
<plugin>
282299
<groupId>org.jacoco</groupId>
283300
<artifactId>jacoco-maven-plugin</artifactId>
@@ -327,7 +344,7 @@
327344
<plugin>
328345
<groupId>org.cyclonedx</groupId>
329346
<artifactId>cyclonedx-maven-plugin</artifactId>
330-
<version>2.9.1</version>
347+
<version>${cyclonedx-maven-plugin.version}</version>
331348
<configuration>
332349
<projectType>library</projectType>
333350
</configuration>
@@ -352,7 +369,6 @@
352369
</build>
353370

354371
<profiles>
355-
356372
<!--
357373
~ Profile to run tests using JRE 8.
358374
~
@@ -366,7 +382,6 @@
366382
<exists>${user.home}/.m2/toolchains.xml</exists>
367383
</file>
368384
</activation>
369-
370385
<build>
371386
<plugins>
372387
<plugin>
@@ -386,7 +401,6 @@
386401
</plugins>
387402
</build>
388403
</profile>
389-
390404
<profile>
391405
<id>release</id>
392406
<activation>
@@ -415,7 +429,6 @@
415429
<plugin>
416430
<groupId>org.apache.maven.plugins</groupId>
417431
<artifactId>maven-gpg-plugin</artifactId>
418-
<version>3.2.7</version>
419432
<executions>
420433
<execution>
421434
<id>sign-artifacts</id>
@@ -430,5 +443,4 @@
430443
</build>
431444
</profile>
432445
</profiles>
433-
434446
</project>

0 commit comments

Comments
 (0)