This is an automated email from the ASF dual-hosted git repository.

pkarwasz pushed a commit to branch fix/overridden-versions
in repository https://gitbox.apache.org/repos/asf/commons-graph.git

commit ccbfe7fe81c3aaa290d12ec477d5c1dc45df0f52
Author: Piotr P. Karwasz <pkarwasz-git...@apache.org>
AuthorDate: Sun Apr 13 08:37:21 2025 +0200

    Do not override versions from Commons Parent
    
    By removing the version overrides for plugin versions defined in 
`commons-parent`, we remove the Dependabot PRs for those plugins.
---
 pom.xml | 38 ++++++++++++++++++++++----------------
 1 file changed, 22 insertions(+), 16 deletions(-)

diff --git a/pom.xml b/pom.xml
index daa8cee..933ee70 100644
--- a/pom.xml
+++ b/pom.xml
@@ -126,7 +126,6 @@
 
     <commons.module.name>org.apache.commons.graph</commons.module.name>
 
-    <commons.release.version>1.0-beta1</commons.release.version>
     <commons.release.desc>(Java 8+)</commons.release.desc>
 
     <commons.jira.id>GRAPH</commons.jira.id>
@@ -136,18 +135,8 @@
     
<commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-graph</commons.scmPubUrl>
     
<commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory>
 
-    <checkstyle.plugin.version>3.1.0</checkstyle.plugin.version>
-    <checkstyle.version>8.27</checkstyle.version>
-
-    <spotbugs.plugin.version>4.0.0</spotbugs.plugin.version>
-
-    <commons.jacoco.version>0.8.4</commons.jacoco.version>
-
-    <commons.javadoc.version>3.1.1</commons.javadoc.version>
-
     <!-- generate report even if there are binary incompatible changes -->
     
<commons.japicmp.breakBuildOnBinaryIncompatibleModifications>false</commons.japicmp.breakBuildOnBinaryIncompatibleModifications>
-    <commons.japicmp.version>0.14.1</commons.japicmp.version>
     <japicmp.skip>false</japicmp.skip>
 
   </properties>
@@ -272,7 +261,6 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-changes-plugin</artifactId>
-        <version>2.3</version>
         <configuration>
           <issueLinkTemplate>%URL%/../%ISSUE%</issueLinkTemplate>
         </configuration>
@@ -288,7 +276,6 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-checkstyle-plugin</artifactId>
-        <version>2.9.1</version>
         <configuration>
           <configLocation>config/maven_checks.xml</configLocation>
           <headerLocation>config/maven-header.txt</headerLocation>
@@ -299,7 +286,6 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-pmd-plugin</artifactId>
-        <version>2.3</version>
         <configuration>
           <targetJdk>${maven.compiler.target}</targetJdk>
         </configuration>
@@ -308,7 +294,6 @@
       <plugin>
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>taglist-maven-plugin</artifactId>
-        <version>3.2.1</version>
       </plugin>
     </plugins>
   </reporting>
@@ -362,7 +347,6 @@
           <plugin>
             <groupId>org.codehaus.mojo</groupId>
             <artifactId>build-helper-maven-plugin</artifactId>
-            <version>3.6.0</version>
             <executions>
               <execution>
                 <id>add-test-source</id>
@@ -379,6 +363,28 @@
             </executions>
           </plugin>
 
+          <!--
+            ~ Make sure Maven plugins have explicit versions.
+            ~ These versions can be either inherited (preferably) or explicit 
in this file.
+            -->
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-enforcer-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>enforce-plugin-versions</id>
+                <goals>
+                  <goal>enforce</goal>
+                </goals>
+                <configuration>
+                  <rules>
+                    <requirePluginVersions/>
+                  </rules>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>
+
           <plugin>
             <artifactId>maven-surefire-plugin</artifactId>
             <configuration>

Reply via email to