Skip to content

Commit

Permalink
define maven plugin versions as properties
Browse files Browse the repository at this point in the history
  • Loading branch information
infeo committed Oct 30, 2024
1 parent 7789dc9 commit 78a9b53
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,15 @@
<hamcrest.version>3.0</hamcrest.version>

<!-- mvn plugins -->
<mvn-compiler.version>3.13.0</mvn-compiler.version>
<mvn-surefire.version>3.5.0</mvn-surefire.version>
<mvn-jar.version>3.4.2</mvn-jar.version>
<mvn-source.version>3.3.1</mvn-source.version>
<mvn-javadoc.version>3.10.0</mvn-javadoc.version>
<mvn-gpg.version>3.2.7</mvn-gpg.version>
<dependency-check.version>10.0.4</dependency-check.version>
<jacoco.version>0.8.12</jacoco.version>
<nexus-staging.version>1.7.0</nexus-staging.version>
</properties>

<licenses>
Expand Down Expand Up @@ -123,20 +131,20 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version>
<version>${mvn-compiler.version}</version>
<configuration>
<release>11</release>
<showWarnings>true</showWarnings>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.0</version>
<version>${mvn-surefire.version}</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.2</version>
<version>${mvn-jar.version}</version>
<configuration>
<archive>
<manifestEntries>
Expand All @@ -147,7 +155,7 @@
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<version>${mvn-source.version}</version>
<executions>
<execution>
<id>attach-sources</id>
Expand All @@ -159,7 +167,7 @@
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.10.0</version>
<version>${mvn-javadoc.version}</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand Down Expand Up @@ -208,7 +216,7 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.12</version>
<version>${jacoco.version}</version>
<executions>
<execution>
<id>prepare-agent</id>
Expand All @@ -231,7 +239,7 @@
<plugins>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.7</version>
<version>${mvn-gpg.version}</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand Down Expand Up @@ -265,7 +273,7 @@
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.7.0</version>
<version>${nexus-staging.version}</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
Expand Down

0 comments on commit 78a9b53

Please sign in to comment.