Visitar URL original
Use plugin version properties (3.x) (#535) · apache/maven-jar-plugin@9f2a001 · GitHub
Skip to content

Commit 9f2a001

Browse files
authored
Use plugin version properties (3.x) (#535)
1 parent 68a978f commit 9f2a001

11 files changed

Lines changed: 18 additions & 17 deletions

File tree

‎pom.xml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,10 @@
7777
<mavenVersion>3.9.15</mavenVersion>
7878
<mavenArchiverVersion>3.6.6</mavenArchiverVersion>
7979

80-
<!-- for JDK 25 -->
81-
<version.maven-invoker-plugin>3.9.1</version.maven-invoker-plugin>
8280
<project.build.outputTimestamp>2025-11-11T09:48:42Z</project.build.outputTimestamp>
81+
82+
<!-- For ITs -->
83+
<version.maven-toolchains-plugin>3.1.0</version.maven-toolchains-plugin>
8384
</properties>
8485

8586
<dependencies>

‎src/it/MJAR-162/pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<plugin>
3434
<groupId>org.apache.maven.plugins</groupId>
3535
<artifactId>maven-resources-plugin</artifactId>
36-
<version>3.3.0</version>
36+
<version>@version.maven-resources-plugin@</version>
3737
</plugin>
3838
<plugin>
3939
<groupId>org.apache.maven.plugins</groupId>

‎src/it/MJAR-275-reproducible-module-info/pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
<plugins>
5252
<plugin>
5353
<artifactId>maven-compiler-plugin</artifactId>
54-
<version>3.10.1</version>
54+
<version>@version.maven-compiler-plugin@</version>
5555
<configuration>
5656
<release>8</release>
5757
</configuration>

‎src/it/MJAR-292-detect-mjar-no-versions/pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<plugins>
5555
<plugin>
5656
<artifactId>maven-compiler-plugin</artifactId>
57-
<version>3.10.1</version>
57+
<version>@version.maven-compiler-plugin@</version>
5858
<configuration>
5959
<release>8</release>
6060
</configuration>

‎src/it/MJAR-292-detect-mjar/pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
<plugins>
6363
<plugin>
6464
<artifactId>maven-compiler-plugin</artifactId>
65-
<version>3.10.1</version>
65+
<version>@version.maven-compiler-plugin@</version>
6666
<configuration>
6767
<release>8</release>
6868
</configuration>

‎src/it/MJAR-292-disable-detect-mjar/pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<plugins>
5555
<plugin>
5656
<artifactId>maven-compiler-plugin</artifactId>
57-
<version>3.10.1</version>
57+
<version>@version.maven-compiler-plugin@</version>
5858
<configuration>
5959
<release>8</release>
6060
</configuration>

‎src/it/MJAR-62-toolchain/pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<plugin>
3434
<groupId>org.apache.maven.plugins</groupId>
3535
<artifactId>maven-toolchains-plugin</artifactId>
36-
<version>3.1.0</version>
36+
<version>@version.maven-toolchains-plugin@</version>
3737
<executions>
3838
<execution>
3939
<goals>

‎src/it/MJAR-70-no-recreation/pom.xml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@
4343
<plugin>
4444
<groupId>org.apache.maven.plugins</groupId>
4545
<artifactId>maven-compiler-plugin</artifactId>
46-
<version>3.11.0</version>
46+
<version>@version.maven-compiler-plugin@</version>
4747
</plugin>
4848
<plugin>
4949
<groupId>org.apache.maven.plugins</groupId>
5050
<artifactId>maven-antrun-plugin</artifactId>
51-
<version>1.2</version>
51+
<version>@version.maven-antrun-plugin@</version>
5252
<executions>
5353
<execution>
5454
<id>touch</id>
@@ -57,12 +57,12 @@
5757
<goal>run</goal>
5858
</goals>
5959
<configuration>
60-
<tasks>
60+
<target>
6161
<!-- Save the JAR and especially its timestamp for evaluation by the post-build hook script -->
6262
<copy file="target/MJAR-70-no-recreation-1.0-SNAPSHOT.jar"
6363
tofile="target/reference.jar"
6464
preservelastmodified="true" overwrite="true"/>
65-
</tasks>
65+
</target>
6666
</configuration>
6767
</execution>
6868
</executions>

‎src/it/MJAR-70-recreation/pom.xml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<plugin>
4343
<groupId>org.apache.maven.plugins</groupId>
4444
<artifactId>maven-antrun-plugin</artifactId>
45-
<version>1.2</version>
45+
<version>@version.maven-antrun-plugin@</version>
4646
<executions>
4747
<execution>
4848
<id>touch</id>
@@ -51,14 +51,14 @@
5151
<goal>run</goal>
5252
</goals>
5353
<configuration>
54-
<tasks>
54+
<target>
5555
<!-- Save the JAR and especially its timestamp for evaluation by the post-build hook script -->
5656
<copy file="target/MJAR-70-recreation-1.0-SNAPSHOT.jar"
5757
tofile="target/reference.jar"
5858
preservelastmodified="true" overwrite="true"/>
5959
<!-- Enforce some time difference prior to building JAR again -->
6060
<sleep seconds="2"/>
61-
</tasks>
61+
</target>
6262
</configuration>
6363
</execution>
6464
</executions>

‎src/it/github-470-1.8/pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<plugin>
3434
<groupId>org.apache.maven.plugins</groupId>
3535
<artifactId>maven-toolchains-plugin</artifactId>
36-
<version>3.1.0</version>
36+
<version>@version.maven-toolchains-plugin@</version>
3737
<executions>
3838
<execution>
3939
<goals>

0 commit comments

Comments
 (0)