Skip to content

Commit b6269ec

Browse files
dwalluckjeremylong
andauthored
build(deps): Update dependencies (#167)
Update all dependencies to the latest version and use properties for all versions for easy updating. Co-authored-by: Jeremy Long <[email protected]>
1 parent 7205804 commit b6269ec

File tree

1 file changed

+31
-21
lines changed

1 file changed

+31
-21
lines changed

pom.xml

Lines changed: 31 additions & 21 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,30 @@
5655
<max.jdk.version>18</max.jdk.version>
5756

5857
<!-- Maven Plugin Versions -->
58+
<cyclonedx-maven-plugin.version>2.9.1</cyclonedx-maven-plugin.version>
5959
<maven.clean.plugin.version>3.4.1</maven.clean.plugin.version>
6060
<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>
61+
<maven.deploy.plugin.version>3.1.4</maven.deploy.plugin.version>
62+
<maven.enforcer.plugin.version>3.5.0</maven.enforcer.plugin.version>
63+
<maven.gpg.plugin.version>3.2.7</maven.gpg.plugin.version>
6364
<maven.install.plugin.version>3.1.4</maven.install.plugin.version>
6465
<maven.jar.plugin.version>3.4.2</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>
66+
<maven.javadoc.plugin.version>3.11.2</maven.javadoc.plugin.version>
67+
<maven.release.plugin.version>3.1.1</maven.release.plugin.version>
68+
<maven.resources.plugin.version>3.3.1</maven.resources.plugin.version>
6869
<maven.site.plugin.version>3.21.0</maven.site.plugin.version>
69-
<maven.source.plugin.version>3.3.0</maven.source.plugin.version>
70+
<maven.source.plugin.version>3.3.1</maven.source.plugin.version>
7071
<maven.surefire.plugin.version>3.5.2</maven.surefire.plugin.version>
72+
<versions-maven-plugin.version>2.18.0</versions-maven-plugin.version>
7173
<!-- Maven build plugins for quality checks -->
7274
<error.prone.core.version>2.36.0</error.prone.core.version>
7375
<jacoco.maven.plugin.version>0.8.12</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+
<spotbugs.maven.plugin.version>4.9.3.0</spotbugs.maven.plugin.version>
77+
<com.github.spotbugs.version>4.9.3</com.github.spotbugs.version>
7678
<!-- Dependency versions -->
77-
<junit.version>5.12.0</junit.version>
79+
<jakarta.validation-api.version>3.1.1</jakarta.validation-api.version>
80+
<json.version>20250107</json.version>
81+
<junit-bom.version>5.12.1</junit-bom.version>
7882
<maven-surefire-junit5-tree-reporter.version>1.4.0</maven-surefire-junit5-tree-reporter.version>
7983
</properties>
8084

@@ -108,24 +112,22 @@
108112

109113
<dependencyManagement>
110114
<dependencies>
111-
112115
<!-- BOMs at the end, so they don't overwrite the dependencies above -->
113116
<dependency>
114117
<groupId>org.junit</groupId>
115118
<artifactId>junit-bom</artifactId>
116-
<version>${junit.version}</version>
119+
<version>${junit-bom.version}</version>
117120
<type>pom</type>
118121
<scope>import</scope>
119122
</dependency>
120-
121123
</dependencies>
122124
</dependencyManagement>
123125

124126
<dependencies>
125127
<dependency>
126128
<groupId>jakarta.validation</groupId>
127129
<artifactId>jakarta.validation-api</artifactId>
128-
<version>3.1.1</version>
130+
<version>${jakarta.validation-api.version}</version>
129131
<optional>true</optional>
130132
<scope>provided</scope>
131133
</dependency>
@@ -137,7 +139,7 @@
137139
<dependency>
138140
<groupId>org.json</groupId>
139141
<artifactId>json</artifactId>
140-
<version>20240303</version>
142+
<version>${json.version}</version>
141143
<scope>test</scope>
142144
</dependency>
143145
<dependency>
@@ -180,6 +182,11 @@
180182
<artifactId>maven-install-plugin</artifactId>
181183
<version>${maven.install.plugin.version}</version>
182184
</plugin>
185+
<plugin>
186+
<groupId>org.apache.maven.plugins</groupId>
187+
<artifactId>maven-gpg-plugin</artifactId>
188+
<version>${maven-gpg-plugin.version}</version>
189+
</plugin>
183190
<plugin>
184191
<groupId>org.apache.maven.plugins</groupId>
185192
<artifactId>maven-jar-plugin</artifactId>
@@ -284,6 +291,14 @@
284291
</dependency>
285292
</dependencies>
286293
</plugin>
294+
<plugin>
295+
<groupId>org.codehaus.mojo</groupId>
296+
<artifactId>versions-maven-plugin</artifactId>
297+
<version>${versions-maven-plugin.version}</version>
298+
<configuration>
299+
<ignoredVersions>(?i).+[-.](alpha|beta|cr|dev|m|rc)([-.]?\d+)?</ignoredVersions>
300+
</configuration>
301+
</plugin>
287302
<plugin>
288303
<groupId>org.jacoco</groupId>
289304
<artifactId>jacoco-maven-plugin</artifactId>
@@ -333,7 +348,7 @@
333348
<plugin>
334349
<groupId>org.cyclonedx</groupId>
335350
<artifactId>cyclonedx-maven-plugin</artifactId>
336-
<version>2.9.1</version>
351+
<version>${cyclonedx-maven-plugin.version}</version>
337352
<configuration>
338353
<projectType>library</projectType>
339354
</configuration>
@@ -358,7 +373,6 @@
358373
</build>
359374

360375
<profiles>
361-
362376
<!--
363377
~ Profile to run tests using JRE 8.
364378
~
@@ -372,7 +386,6 @@
372386
<exists>${user.home}/.m2/toolchains.xml</exists>
373387
</file>
374388
</activation>
375-
376389
<build>
377390
<plugins>
378391
<plugin>
@@ -408,7 +421,6 @@
408421
</plugins>
409422
</build>
410423
</profile>
411-
412424
<profile>
413425
<id>release</id>
414426
<activation>
@@ -437,7 +449,6 @@
437449
<plugin>
438450
<groupId>org.apache.maven.plugins</groupId>
439451
<artifactId>maven-gpg-plugin</artifactId>
440-
<version>3.2.7</version>
441452
<executions>
442453
<execution>
443454
<id>sign-artifacts</id>
@@ -452,5 +463,4 @@
452463
</build>
453464
</profile>
454465
</profiles>
455-
456466
</project>

0 commit comments

Comments
 (0)