Skip to content

Commit a5129d8

Browse files
committed
store plugin versions in maven properties
1 parent ad87e47 commit a5129d8

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

pom.xml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,15 @@
5050
<junit.version>5.11.3</junit.version>
5151

5252
<!-- build plugin dependencies -->
53+
<mvn-compiler.version>3.13.0</mvn-compiler.version>
54+
<mvn-surefire.version>3.5.1</mvn-surefire.version>
55+
<mvn-enforcer.version>3.5.0</mvn-enforcer.version>
56+
<mvn-source.version>3.3.1</mvn-source.version>
57+
<mvn-javadoc.version>3.10.1</mvn-javadoc.version>
58+
<mvn-gpg.version>3.2.7</mvn-gpg.version>
59+
<mvn-deploy.version>3.1.3</mvn-deploy.version>
5360
<dependency-check.version>11.1.0</dependency-check.version>
54-
<nexus-staging.version>1.6.8</nexus-staging.version>
61+
<nexus-staging.version>1.7.0</nexus-staging.version>
5562
</properties>
5663

5764
<dependencies>
@@ -100,20 +107,20 @@
100107
<plugin>
101108
<groupId>org.apache.maven.plugins</groupId>
102109
<artifactId>maven-compiler-plugin</artifactId>
103-
<version>3.13.0</version>
110+
<version>${mvn-compiler.version}</version>
104111
<configuration>
105112
<release>${project.jdk.version}</release>
106113
</configuration>
107114
</plugin>
108115
<plugin>
109116
<groupId>org.apache.maven.plugins</groupId>
110117
<artifactId>maven-surefire-plugin</artifactId>
111-
<version>3.5.1</version>
118+
<version>${mvn-surefire.version}</version>
112119
</plugin>
113120
<plugin>
114121
<groupId>org.apache.maven.plugins</groupId>
115122
<artifactId>maven-enforcer-plugin</artifactId>
116-
<version>3.5.0</version>
123+
<version>${mvn-enforcer.version}</version>
117124
<executions>
118125
<execution>
119126
<id>check-preconditions</id>
@@ -134,7 +141,7 @@
134141
</plugin>
135142
<plugin>
136143
<artifactId>maven-source-plugin</artifactId>
137-
<version>3.3.1</version>
144+
<version>${mvn-source.version}</version>
138145
<executions>
139146
<execution>
140147
<id>attach-sources</id>
@@ -146,7 +153,7 @@
146153
</plugin>
147154
<plugin>
148155
<artifactId>maven-javadoc-plugin</artifactId>
149-
<version>3.10.1</version>
156+
<version>${mvn-javadoc.version}</version>
150157
<executions>
151158
<execution>
152159
<id>attach-javadocs</id>
@@ -239,7 +246,7 @@
239246
<plugins>
240247
<plugin>
241248
<artifactId>maven-gpg-plugin</artifactId>
242-
<version>3.2.7</version>
249+
<version>${mvn-gpg.version}</version>
243250
<executions>
244251
<execution>
245252
<id>sign-artifacts</id>
@@ -271,7 +278,7 @@
271278
<plugin>
272279
<groupId>org.sonatype.plugins</groupId>
273280
<artifactId>nexus-staging-maven-plugin</artifactId>
274-
<version>1.7.0</version>
281+
<version>${nexus-staging.version}</version>
275282
<extensions>true</extensions>
276283
<configuration>
277284
<serverId>ossrh</serverId>
@@ -297,7 +304,7 @@
297304
<plugin>
298305
<groupId>org.apache.maven.plugins</groupId>
299306
<artifactId>maven-deploy-plugin</artifactId>
300-
<version>3.1.3</version>
307+
<version>${mvn-deploy.version}</version>
301308
</plugin>
302309
</plugins>
303310
</build>

0 commit comments

Comments
 (0)