Skip to content

Commit dc78284

Browse files
committed
Move plugin versions into properties section
All hardcoded plugin versions in portfolio-app/pom.xml are now declared in <properties> as ${<artifactId>.version} placeholders, matching the existing ${tycho-version} pattern. Makes outdated plugins easier to spot via `mvn versions:display-plugin-updates`. The checkstyle dependency version inside maven-checkstyle-plugin is intentionally left hardcoded since it is not a plugin version. Issue: #3244
1 parent f16d2b9 commit dc78284

1 file changed

Lines changed: 25 additions & 15 deletions

File tree

portfolio-app/pom.xml

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0"
2-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2+
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">
43
<modelVersion>4.0.0</modelVersion>
54

65
<groupId>name.abuchen.portfolio</groupId>
@@ -14,6 +13,17 @@
1413
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1514
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
1615
<tycho-version>5.0.2</tycho-version>
16+
<maven-enforcer-plugin.version>3.6.3</maven-enforcer-plugin.version>
17+
<maven-resources-plugin.version>3.5.0</maven-resources-plugin.version>
18+
<maven-dependency-plugin.version>3.10.0</maven-dependency-plugin.version>
19+
<maven-jarsigner-plugin.version>3.1.0</maven-jarsigner-plugin.version>
20+
<maven-gpg-plugin.version>3.2.8</maven-gpg-plugin.version>
21+
<maven-checkstyle-plugin.version>3.6.0</maven-checkstyle-plugin.version>
22+
<sonar-maven-plugin.version>5.6.0.6792</sonar-maven-plugin.version>
23+
<fix-info-plist-maven-plugin.version>1.8</fix-info-plist-maven-plugin.version>
24+
<exec-maven-plugin.version>3.6.3</exec-maven-plugin.version>
25+
<jacoco-maven-plugin.version>0.8.14</jacoco-maven-plugin.version>
26+
<protoc-jar-maven-plugin.version>3.11.4</protoc-jar-maven-plugin.version>
1727
<jarsigner.skip>true</jarsigner.skip>
1828
<gpgsigner.skip>true</gpgsigner.skip>
1929
<applesigner.skip>true</applesigner.skip>
@@ -73,7 +83,7 @@
7383
<profile>
7484
<!--
7585
local-dev (activate by appending -Plocal-dev to your Maven command line)
76-
86+
7787
The profile can be used for local development, to speed up the build:
7888
* use a target platform without the babel translation bundles
7989
* skip code coverage and checkstyle checks
@@ -94,7 +104,7 @@
94104
<plugin>
95105
<groupId>org.apache.maven.plugins</groupId>
96106
<artifactId>maven-enforcer-plugin</artifactId>
97-
<version>3.6.3</version>
107+
<version>${maven-enforcer-plugin.version}</version>
98108
<executions>
99109
<execution>
100110
<id>enforce-versions</id>
@@ -173,7 +183,7 @@
173183
</environment>
174184
</environments>
175185
<filters>
176-
<filter>
186+
<filter>
177187
<type>eclipse-plugin</type>
178188
<id>org.eclipse.ui.ide</id>
179189
<removeAll />
@@ -450,15 +460,15 @@
450460
<plugin>
451461
<groupId>org.apache.maven.plugins</groupId>
452462
<artifactId>maven-resources-plugin</artifactId>
453-
<version>3.5.0</version>
463+
<version>${maven-resources-plugin.version}</version>
454464
<configuration>
455465
<encoding>UTF-8</encoding>
456466
</configuration>
457467
</plugin>
458468
<plugin>
459469
<groupId>org.apache.maven.plugins</groupId>
460470
<artifactId>maven-dependency-plugin</artifactId>
461-
<version>3.10.0</version>
471+
<version>${maven-dependency-plugin.version}</version>
462472
</plugin>
463473
<plugin>
464474
<groupId>org.eclipse.tycho</groupId>
@@ -518,7 +528,7 @@
518528
<plugin>
519529
<groupId>org.apache.maven.plugins</groupId>
520530
<artifactId>maven-jarsigner-plugin</artifactId>
521-
<version>3.1.0</version>
531+
<version>${maven-jarsigner-plugin.version}</version>
522532
<executions>
523533
<execution>
524534
<id>sign</id>
@@ -550,12 +560,12 @@
550560
<plugin>
551561
<groupId>org.apache.maven.plugins</groupId>
552562
<artifactId>maven-gpg-plugin</artifactId>
553-
<version>3.2.8</version>
563+
<version>${maven-gpg-plugin.version}</version>
554564
</plugin>
555565
<plugin>
556566
<groupId>org.apache.maven.plugins</groupId>
557567
<artifactId>maven-checkstyle-plugin</artifactId>
558-
<version>3.6.0</version>
568+
<version>${maven-checkstyle-plugin.version}</version>
559569
<dependencies>
560570
<dependency>
561571
<groupId>com.puppycrawl.tools</groupId>
@@ -584,17 +594,17 @@
584594
<plugin>
585595
<groupId>org.sonarsource.scanner.maven</groupId>
586596
<artifactId>sonar-maven-plugin</artifactId>
587-
<version>5.7.0.6970</version>
597+
<version>${sonar-maven-plugin.version}</version>
588598
</plugin>
589599
<plugin>
590600
<groupId>name.abuchen</groupId>
591601
<artifactId>fix-info-plist-maven-plugin</artifactId>
592-
<version>1.8</version>
602+
<version>${fix-info-plist-maven-plugin.version}</version>
593603
</plugin>
594604
<plugin>
595605
<groupId>org.codehaus.mojo</groupId>
596606
<artifactId>exec-maven-plugin</artifactId>
597-
<version>3.6.3</version>
607+
<version>${exec-maven-plugin.version}</version>
598608
<configuration>
599609
<mainClass>name.abuchen.portfolio.build.MessagesTool</mainClass>
600610
<classpathScope>runtime</classpathScope>
@@ -607,12 +617,12 @@
607617
<plugin>
608618
<groupId>org.jacoco</groupId>
609619
<artifactId>jacoco-maven-plugin</artifactId>
610-
<version>0.8.14</version>
620+
<version>${jacoco-maven-plugin.version}</version>
611621
</plugin>
612622
<plugin>
613623
<groupId>com.github.os72</groupId>
614624
<artifactId>protoc-jar-maven-plugin</artifactId>
615-
<version>3.11.4</version>
625+
<version>${protoc-jar-maven-plugin.version}</version>
616626
</plugin>
617627
</plugins>
618628
</pluginManagement>

0 commit comments

Comments
 (0)