Skip to content

Commit 0660c35

Browse files
committed
Update maven plugin versions for release profile.
1 parent 07802f7 commit 0660c35

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

pom.xml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,13 @@
286286
</plugin>
287287
</plugins>
288288
</pluginManagement>
289+
<plugins>
290+
<!-- without mention here defaults to version 1.2 -->
291+
<plugin>
292+
<artifactId>maven-enforcer-plugin</artifactId>
293+
<version>3.5.0</version>
294+
</plugin>
295+
</plugins>
289296
</build>
290297

291298
<dependencyManagement>
@@ -311,4 +318,34 @@
311318
<module>extras</module>
312319
<module>examples</module>
313320
</modules>
321+
<profiles>
322+
<profile>
323+
<!-- Override maven plugin versions in release profile -->
324+
<id>sonatype-oss-release</id>
325+
<build>
326+
<plugins>
327+
<plugin>
328+
<artifactId>maven-enforcer-plugin</artifactId>
329+
<version>3.5.0</version>
330+
</plugin>
331+
<plugin>
332+
<artifactId>maven-gpg-plugin</artifactId>
333+
<version>3.2.7</version>
334+
</plugin>
335+
<plugin>
336+
<artifactId>maven-jar-plugin</artifactId>
337+
<version>3.4.2</version>
338+
</plugin>
339+
<plugin>
340+
<artifactId>maven-javadoc-plugin</artifactId>
341+
<version>3.11.2</version>
342+
</plugin>
343+
<plugin>
344+
<artifactId>maven-source-plugin</artifactId>
345+
<version>3.3.1</version>
346+
</plugin>
347+
</plugins>
348+
</build>
349+
</profile>
350+
</profiles>
314351
</project>

0 commit comments

Comments
 (0)