Skip to content

Commit 963ac17

Browse files
committed
GH-860 - Use <pluginManagement /> section to manage build plugin versions.
1 parent db40cd3 commit 963ac17

File tree

1 file changed

+89
-47
lines changed

1 file changed

+89
-47
lines changed

pom.xml

Lines changed: 89 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,39 @@ limitations under the License.
8787
</license>
8888
</licenses>
8989

90+
<dependencyManagement>
91+
<dependencies>
92+
<dependency>
93+
<groupId>org.springframework</groupId>
94+
<artifactId>spring-framework-bom</artifactId>
95+
<version>${spring-framework.version}</version>
96+
<type>pom</type>
97+
<scope>import</scope>
98+
</dependency>
99+
<dependency>
100+
<groupId>org.springframework.boot</groupId>
101+
<artifactId>spring-boot-dependencies</artifactId>
102+
<version>${spring-boot.version}</version>
103+
<type>pom</type>
104+
<scope>import</scope>
105+
</dependency>
106+
<dependency>
107+
<groupId>org.jmolecules</groupId>
108+
<artifactId>jmolecules-bom</artifactId>
109+
<version>${jmolecules-bom.version}</version>
110+
<type>pom</type>
111+
<scope>import</scope>
112+
</dependency>
113+
<dependency>
114+
<groupId>io.awspring.cloud</groupId>
115+
<artifactId>spring-cloud-aws-dependencies</artifactId>
116+
<version>${spring-cloud-aws-bom.version}</version>
117+
<type>pom</type>
118+
<scope>import</scope>
119+
</dependency>
120+
</dependencies>
121+
</dependencyManagement>
122+
90123
<profiles>
91124

92125
<profile>
@@ -148,7 +181,6 @@ limitations under the License.
148181
<plugin>
149182
<groupId>org.apache.maven.plugins</groupId>
150183
<artifactId>maven-javadoc-plugin</artifactId>
151-
<version>3.8.0</version>
152184
<executions>
153185
<execution>
154186
<id>attach-javadocs</id>
@@ -174,7 +206,6 @@ limitations under the License.
174206
<plugin>
175207
<groupId>org.jfrog.buildinfo</groupId>
176208
<artifactId>artifactory-maven-plugin</artifactId>
177-
<version>${artifactory-maven-plugin.version}</version>
178209
<inherited>false</inherited>
179210
<executions>
180211
<execution>
@@ -211,7 +242,6 @@ limitations under the License.
211242
<plugin>
212243
<groupId>org.apache.maven.plugins</groupId>
213244
<artifactId>maven-gpg-plugin</artifactId>
214-
<version>3.2.5</version>
215245
<executions>
216246
<execution>
217247
<id>sign-artifacts</id>
@@ -262,7 +292,6 @@ limitations under the License.
262292
<plugin>
263293
<groupId>org.apache.maven.plugins</groupId>
264294
<artifactId>maven-javadoc-plugin</artifactId>
265-
<version>3.8.0</version>
266295
<inherited>false</inherited>
267296
<executions>
268297
<execution>
@@ -287,7 +316,6 @@ limitations under the License.
287316
<plugin>
288317
<groupId>io.spring.maven.antora</groupId>
289318
<artifactId>antora-component-version-maven-plugin</artifactId>
290-
<version>0.0.4</version>
291319
<executions>
292320
<execution>
293321
<goals>
@@ -325,7 +353,6 @@ limitations under the License.
325353
<plugin>
326354
<groupId>org.apache.maven.plugins</groupId>
327355
<artifactId>maven-assembly-plugin</artifactId>
328-
<version>3.7.1</version>
329356
<executions>
330357
<execution>
331358
<id>docs</id>
@@ -349,7 +376,6 @@ limitations under the License.
349376
<plugin>
350377
<groupId>org.jfrog.buildinfo</groupId>
351378
<artifactId>artifactory-maven-plugin</artifactId>
352-
<version>${artifactory-maven-plugin.version}</version>
353379
<inherited>false</inherited>
354380
<executions>
355381
<execution>
@@ -396,39 +422,6 @@ limitations under the License.
396422

397423
</profiles>
398424

399-
<dependencyManagement>
400-
<dependencies>
401-
<dependency>
402-
<groupId>org.springframework</groupId>
403-
<artifactId>spring-framework-bom</artifactId>
404-
<version>${spring-framework.version}</version>
405-
<type>pom</type>
406-
<scope>import</scope>
407-
</dependency>
408-
<dependency>
409-
<groupId>org.springframework.boot</groupId>
410-
<artifactId>spring-boot-dependencies</artifactId>
411-
<version>${spring-boot.version}</version>
412-
<type>pom</type>
413-
<scope>import</scope>
414-
</dependency>
415-
<dependency>
416-
<groupId>org.jmolecules</groupId>
417-
<artifactId>jmolecules-bom</artifactId>
418-
<version>${jmolecules-bom.version}</version>
419-
<type>pom</type>
420-
<scope>import</scope>
421-
</dependency>
422-
<dependency>
423-
<groupId>io.awspring.cloud</groupId>
424-
<artifactId>spring-cloud-aws-dependencies</artifactId>
425-
<version>${spring-cloud-aws-bom.version}</version>
426-
<type>pom</type>
427-
<scope>import</scope>
428-
</dependency>
429-
</dependencies>
430-
</dependencyManagement>
431-
432425
<dependencies>
433426

434427
<dependency>
@@ -445,10 +438,35 @@ limitations under the License.
445438

446439
<pluginManagement>
447440
<plugins>
441+
<plugin>
442+
<groupId>org.apache.maven.plugins</groupId>
443+
<artifactId>maven-compiler-plugin</artifactId>
444+
<version>3.13.0</version>
445+
</plugin>
446+
<plugin>
447+
<groupId>org.apache.maven.plugins</groupId>
448+
<artifactId>maven-surefire-plugin</artifactId>
449+
<version>3.5.1</version>
450+
</plugin>
451+
<plugin>
452+
<groupId>org.apache.maven.plugins</groupId>
453+
<artifactId>maven-source-plugin</artifactId>
454+
<version>3.3.0</version>
455+
</plugin>
456+
<plugin>
457+
<groupId>org.codehaus.mojo</groupId>
458+
<artifactId>flatten-maven-plugin</artifactId>
459+
<version>1.6.0</version>
460+
</plugin>
461+
<plugin>
462+
<groupId>org.apache.maven.plugins</groupId>
463+
<artifactId>maven-jar-plugin</artifactId>
464+
<version>3.4.2</version>
465+
</plugin>
448466
<plugin>
449467
<groupId>org.apache.maven.plugins</groupId>
450468
<artifactId>maven-javadoc-plugin</artifactId>
451-
<version>3.8.0</version>
469+
<version>3.10.1</version>
452470
<configuration>
453471
<doclint>accessibility,html,reference</doclint>
454472
<show>package</show>
@@ -460,6 +478,36 @@ limitations under the License.
460478
</links>
461479
</configuration>
462480
</plugin>
481+
<plugin>
482+
<groupId>org.jfrog.buildinfo</groupId>
483+
<artifactId>artifactory-maven-plugin</artifactId>
484+
<version>3.6.2</version>
485+
</plugin>
486+
<plugin>
487+
<groupId>org.apache.maven.plugins</groupId>
488+
<artifactId>maven-release-plugin</artifactId>
489+
<version>3.1.1</version>
490+
</plugin>
491+
<plugin>
492+
<groupId>org.apache.maven.plugins</groupId>
493+
<artifactId>maven-gpg-plugin</artifactId>
494+
<version>3.2.7</version>
495+
</plugin>
496+
<plugin>
497+
<groupId>io.spring.maven.antora</groupId>
498+
<artifactId>antora-component-version-maven-plugin</artifactId>
499+
<version>0.0.4</version>
500+
</plugin>
501+
<plugin>
502+
<groupId>io.spring.maven.antora</groupId>
503+
<artifactId>antora-maven-plugin</artifactId>
504+
<version>0.0.4</version>
505+
</plugin>
506+
<plugin>
507+
<groupId>org.apache.maven.plugins</groupId>
508+
<artifactId>maven-assembly-plugin</artifactId>
509+
<version>3.7.1</version>
510+
</plugin>
463511
</plugins>
464512
</pluginManagement>
465513

@@ -468,7 +516,6 @@ limitations under the License.
468516
<plugin>
469517
<groupId>org.apache.maven.plugins</groupId>
470518
<artifactId>maven-compiler-plugin</artifactId>
471-
<version>3.13.0</version>
472519
<configuration>
473520
<source>17</source>
474521
<target>17</target>
@@ -489,7 +536,6 @@ limitations under the License.
489536
<plugin>
490537
<groupId>org.apache.maven.plugins</groupId>
491538
<artifactId>maven-surefire-plugin</artifactId>
492-
<version>3.4.0</version>
493539
<configuration>
494540
<excludes>
495541
<exclude />
@@ -500,7 +546,6 @@ limitations under the License.
500546
<plugin>
501547
<groupId>org.apache.maven.plugins</groupId>
502548
<artifactId>maven-source-plugin</artifactId>
503-
<version>3.3.0</version>
504549
<executions>
505550
<execution>
506551
<id>attach-sources</id>
@@ -514,7 +559,6 @@ limitations under the License.
514559
<plugin>
515560
<groupId>org.apache.maven.plugins</groupId>
516561
<artifactId>maven-jar-plugin</artifactId>
517-
<version>3.4.2</version>
518562
<configuration>
519563
<archive>
520564
<manifestEntries>
@@ -529,7 +573,6 @@ limitations under the License.
529573
<plugin>
530574
<groupId>org.codehaus.mojo</groupId>
531575
<artifactId>flatten-maven-plugin</artifactId>
532-
<version>1.6.0</version>
533576
<executions>
534577
<execution>
535578
<id>flatten</id>
@@ -561,7 +604,6 @@ limitations under the License.
561604
<plugin>
562605
<groupId>org.apache.maven.plugins</groupId>
563606
<artifactId>maven-release-plugin</artifactId>
564-
<version>3.1.1</version>
565607
<configuration>
566608
<releaseProfiles>sonatype</releaseProfiles>
567609
<autoVersionSubmodules>true</autoVersionSubmodules>

0 commit comments

Comments
 (0)