Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 31 additions & 21 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">

<modelVersion>4.0.0</modelVersion>
<groupId>com.github.package-url</groupId>
<artifactId>packageurl-java</artifactId>
Expand Down Expand Up @@ -56,25 +55,30 @@
<max.jdk.version>18</max.jdk.version>

<!-- Maven Plugin Versions -->
<cyclonedx-maven-plugin.version>2.9.1</cyclonedx-maven-plugin.version>
<maven.clean.plugin.version>3.4.1</maven.clean.plugin.version>
<maven.compiler.plugin.version>3.14.0</maven.compiler.plugin.version>
<maven.deploy.plugin.version>2.7</maven.deploy.plugin.version>
<maven.enforcer.plugin.version>3.4.1</maven.enforcer.plugin.version>
<maven.deploy.plugin.version>3.1.4</maven.deploy.plugin.version>
<maven.enforcer.plugin.version>3.5.0</maven.enforcer.plugin.version>
<maven.gpg.plugin.version>3.2.7</maven.gpg.plugin.version>
<maven.install.plugin.version>3.1.4</maven.install.plugin.version>
<maven.jar.plugin.version>3.4.2</maven.jar.plugin.version>
<maven.javadoc.plugin.version>3.6.3</maven.javadoc.plugin.version>
<maven.release.plugin.version>3.0.1</maven.release.plugin.version>
<maven.resources.plugin.version>2.6</maven.resources.plugin.version>
<maven.javadoc.plugin.version>3.11.2</maven.javadoc.plugin.version>
<maven.release.plugin.version>3.1.1</maven.release.plugin.version>
<maven.resources.plugin.version>3.3.1</maven.resources.plugin.version>
<maven.site.plugin.version>3.21.0</maven.site.plugin.version>
<maven.source.plugin.version>3.3.0</maven.source.plugin.version>
<maven.source.plugin.version>3.3.1</maven.source.plugin.version>
<maven.surefire.plugin.version>3.5.2</maven.surefire.plugin.version>
<versions-maven-plugin.version>2.18.0</versions-maven-plugin.version>
<!-- Maven build plugins for quality checks -->
<error.prone.core.version>2.36.0</error.prone.core.version>
<jacoco.maven.plugin.version>0.8.12</jacoco.maven.plugin.version>
<spotbugs.maven.plugin.version>4.8.3.1</spotbugs.maven.plugin.version>
<com.github.spotbugs.version>4.8.3</com.github.spotbugs.version>
<spotbugs.maven.plugin.version>4.9.3.0</spotbugs.maven.plugin.version>
<com.github.spotbugs.version>4.9.3</com.github.spotbugs.version>
<!-- Dependency versions -->
<junit.version>5.12.0</junit.version>
<jakarta.validation-api.version>3.1.1</jakarta.validation-api.version>
<json.version>20250107</json.version>
<junit-bom.version>5.12.1</junit-bom.version>
<maven-surefire-junit5-tree-reporter.version>1.4.0</maven-surefire-junit5-tree-reporter.version>
</properties>

Expand Down Expand Up @@ -108,24 +112,22 @@

<dependencyManagement>
<dependencies>

<!-- BOMs at the end, so they don't overwrite the dependencies above -->
<dependency>
<groupId>org.junit</groupId>
<artifactId>junit-bom</artifactId>
<version>${junit.version}</version>
<version>${junit-bom.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>

</dependencies>
</dependencyManagement>

<dependencies>
<dependency>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
<version>3.1.1</version>
<version>${jakarta.validation-api.version}</version>
<optional>true</optional>
<scope>provided</scope>
</dependency>
Expand All @@ -137,7 +139,7 @@
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20240303</version>
<version>${json.version}</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -180,6 +182,11 @@
<artifactId>maven-install-plugin</artifactId>
<version>${maven.install.plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>${maven-gpg-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand Down Expand Up @@ -284,6 +291,14 @@
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>${versions-maven-plugin.version}</version>
<configuration>
<ignoredVersions>(?i).+[-.](alpha|beta|cr|dev|m|rc)([-.]?\d+)?</ignoredVersions>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
Expand Down Expand Up @@ -333,7 +348,7 @@
<plugin>
<groupId>org.cyclonedx</groupId>
<artifactId>cyclonedx-maven-plugin</artifactId>
<version>2.9.1</version>
<version>${cyclonedx-maven-plugin.version}</version>
<configuration>
<projectType>library</projectType>
</configuration>
Expand All @@ -358,7 +373,6 @@
</build>

<profiles>

<!--
~ Profile to run tests using JRE 8.
~
Expand All @@ -372,7 +386,6 @@
<exists>${user.home}/.m2/toolchains.xml</exists>
</file>
</activation>

<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -408,7 +421,6 @@
</plugins>
</build>
</profile>

<profile>
<id>release</id>
<activation>
Expand Down Expand Up @@ -437,7 +449,6 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.7</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand All @@ -452,5 +463,4 @@
</build>
</profile>
</profiles>

</project>