Skip to content

Commit

Permalink
Make sure all plugins are versioned
Browse files Browse the repository at this point in the history
This adds an enforcer rule to make sure every plugin has a specified
version.
  • Loading branch information
stuartwdouglas committed Oct 27, 2021
1 parent 834ed9d commit 0d19ab9
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,13 @@
<!-- Note: this version is also set in quarkus-bom but BOMs don't contribute to pluginManagement or properties -->
<jacoco.version>0.8.7</jacoco.version>


<asciidoctor-maven-plugin.version>2.0.0</asciidoctor-maven-plugin.version>
<docker-maven-plugin.version>0.37.0</docker-maven-plugin.version>
<formatter-maven-plugin.version>2.16.0</formatter-maven-plugin.version>
<impsort-maven-plugin.version>1.6.2</impsort-maven-plugin.version>
<maven-invoker-plugin.version>3.2.2</maven-invoker-plugin.version>
<maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
<maven-dependency-plugin.version>3.1.2</maven-dependency-plugin.version>

<!--TODO: remove when switched back to quarkus-maven-plugin for grpc stubs-->
Expand Down Expand Up @@ -427,6 +434,10 @@
<requireMavenVersion>
<version>${supported-maven-versions}</version>
</requireMavenVersion>
<requirePluginVersions>
<phases>compile</phases>
<unCheckedPluginList>io.quarkus:quarkus-bootstrap-maven-plugin,io.quarkus:quarkus-platform-descriptor-json-plugin,io.quarkus:quarkus-maven-plugin</unCheckedPluginList>
</requirePluginVersions>
<bannedDependencies>
<excludes>
<!-- Use Jakarta artifacts instead of JBoss specific ones -->
Expand Down Expand Up @@ -580,7 +591,7 @@
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.37.0</version>
<version>${docker-maven-plugin.version}</version>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
Expand All @@ -598,7 +609,7 @@
<plugin>
<groupId>net.revelc.code.formatter</groupId>
<artifactId>formatter-maven-plugin</artifactId>
<version>2.16.0</version>
<version>${formatter-maven-plugin.version}</version>
<dependencies>
<dependency>
<artifactId>quarkus-ide-config</artifactId>
Expand All @@ -617,7 +628,7 @@
<plugin>
<groupId>net.revelc.code</groupId>
<artifactId>impsort-maven-plugin</artifactId>
<version>1.6.2</version>
<version>${impsort-maven-plugin.version}</version>
<configuration>
<!-- store outside of target to speed up formatting when mvn clean is used -->
<cachedir>.cache</cachedir>
Expand All @@ -634,7 +645,7 @@
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.1.0</version>
<version>${maven-resources-plugin.version}</version>
<configuration>
<nonFilteredFileExtensions>
<nonFilteredFileExtension>eot</nonFilteredFileExtension>
Expand Down Expand Up @@ -686,7 +697,12 @@
</plugin>
<plugin>
<artifactId>maven-invoker-plugin</artifactId>
<version>3.2.2</version>
<version>${maven-invoker-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>${asciidoctor-maven-plugin.version}</version>
</plugin>
</plugins>
</pluginManagement>
Expand Down

0 comments on commit 0d19ab9

Please sign in to comment.