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

garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-parent.git


The following commit(s) were added to refs/heads/master by this push:
     new 443c62d  Rename JDK-activated profiles to java-N-up and java-below-N 
(#731)
443c62d is described below

commit 443c62dd7d1e5bac6d335386f77f77b7939da8de
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Sat Nov 28 20:04:05 2026 +0100

    Rename JDK-activated profiles to java-N-up and java-below-N (#731)
    
    * Rename the JDK-activated profiles to java-N-up and java-below-N
    
    The profiles activated by the JDK version used several naming schemes
    (`jdk7-plugin-fix-version`, `jdk8-plugin-fix-version`, `java-8-9`,
    `java-11-16`, `java-17-up`), `java-8-9` actually covered Java 8 to
    10, and two profiles active on Java 8 set the same properties.
    
    Use two kinds of profiles, documented in the POM:
    
    - `java-N-up` adds configuration only understood by Java N and later.
    - `java-below-N` downgrades plugins and dependencies that require
      Java N, so each pin sits in the profile named after its requirement.
    
    The top-level properties now always contain the newest versions, which
    is also the value Dependabot updates. Previously, Checkstyle, Felix
    maven-bundle-plugin, bndlib and Apache RAT had their older version at
    the top level and the newer one in a `java-N-up` profile.
    
    Several `java-below-N` profiles can be active at the same time and the
    last one declared wins, so they are declared from the highest to the
    lowest N, each next to the matching `java-N-up` profile.
    
    `jdk7-plugin-fix-version` is removed, since Java 8 or later is
    required. The profile names used by components (`java-9-up`,
    `java-21-up`, `java-1.8`, `java-1.11`) are unchanged.
    
    The effective POM is unchanged on Java 8, 11, 17, 21 and 27.
    
    Assisted-By: Claude Opus 5.5 <[email protected]>
    
    * Bump spotbugs-maven-plugin from 4.8.6.6 to 4.8.6.8 on Java 8 to 10
    
    Both releases still target Java 8 and use SpotBugs 4.8.6.
    
    Assisted-By: Claude Opus 5.5 <[email protected]>
    
    * Bump spdx-maven-plugin from 0.5.5 to 0.6.5 on Java 11 to 16
    
    Version 0.5.5 was pinned on Java 11 to 16 because the top-level version
    at the time, 1.0.3, sometimes failed there: its own classes target
    Java 11, but it lazily loads Apache Jena 5, which requires Java 17.
    
    Version 0.6.5 is the newest release whose classes and dependencies all
    target Java 11 or earlier (Apache Jena 4.7.0), so it cannot hit that
    problem.
    
    Assisted-By: Claude Opus 5.5 <[email protected]>
    
    * Shorten the changelog entry for the profile renaming
    
    Assisted-By: Claude Opus 5.5 <[email protected]>
---
 pom.xml                 | 135 +++++++++++++++++++++---------------------------
 src/changes/changes.xml |   4 ++
 2 files changed, 64 insertions(+), 75 deletions(-)

diff --git a/pom.xml b/pom.xml
index 7cd5a4e..023ddce 100644
--- a/pom.xml
+++ b/pom.xml
@@ -120,12 +120,12 @@
     <commons.build-plugin.version>1.16.1</commons.build-plugin.version>
     <commons.changes.version>3.0.0-M3</commons.changes.version>
     
<commons.checkstyle-plugin.version>3.6.0</commons.checkstyle-plugin.version>
-    <commons.checkstyle.version>13.2.0</commons.checkstyle.version>
+    <commons.checkstyle.version>14.4.0</commons.checkstyle.version>
     <commons.compiler.version>3.16.0</commons.compiler.version>
     <commons.cyclonedx.version>2.9.3</commons.cyclonedx.version>
     <commons.spdx.version>1.0.4</commons.spdx.version>
     <commons.failsafe.version>3.6.1</commons.failsafe.version>
-    <commons.felix.version>5.1.9</commons.felix.version>
+    <commons.felix.version>6.2.0</commons.felix.version>
     <commons.jacoco.version>0.8.16</commons.jacoco.version>
     <commons.japicmp.version>0.28.0</commons.japicmp.version>
     <commons.jar-plugin.version>3.5.1</commons.jar-plugin.version>
@@ -135,13 +135,12 @@
     <commons.pmd.version>3.28.0</commons.pmd.version>
     <commons.pmd-impl.version>7.30.0</commons.pmd-impl.version>
     <commons.project-info.version>3.9.0</commons.project-info.version>
-    <commons.rat.version>0.17</commons.rat.version>
+    <commons.rat.version>0.18</commons.rat.version>
     <commons.release-plugin.version>1.10.0</commons.release-plugin.version>
     <commons.scm-publish.version>1.1</commons.scm-publish.version>
     
<commons.moditect-maven-plugin.version>1.3.0.Final</commons.moditect-maven-plugin.version>
     
<commons.moditect-maven-plugin.addServiceUses>true</commons.moditect-maven-plugin.addServiceUses>
-    <!-- bndlib 7 requires Java 17 -->
-    <commons.biz.aQute.bndlib.version>6.4.1</commons.biz.aQute.bndlib.version>
+    <commons.biz.aQute.bndlib.version>7.5.0</commons.biz.aQute.bndlib.version>
     <!-- JUnit 6 requires Java 17 -->
     <commons.junit.version>5.14.4</commons.junit.version>
     <!-- JUnit Pioneer 2 requires Java 11 -->
@@ -1685,28 +1684,72 @@
         </plugins>
       </build>
     </profile>
-    <!-- profile to allow the use of plugin versions that require Java 7 -->
+    <!--
+      Profiles activated by the version of the JDK running the build:
+      - java-N-up: adds configuration only understood by Java N and later.
+      - java-below-N: downgrades plugins and dependencies that require Java N.
+        The top-level properties contain the newest versions, which Dependabot 
updates.
+        Several java-below-N profiles can be active at once and the last one 
declared wins,
+        so they are declared from the highest to the lowest N.
+    -->
     <profile>
-      <id>jdk7-plugin-fix-version</id>
+      <!-- Java 21 and up -->
+      <!-- Use -XX:+EnableDynamicAgentLoading on the argument line to avoid 
JVM warnings when tests use Mockito and ByteBuddy:
+           WARNING: A Java agent has been loaded dynamically 
(/Users/garygregory/.m2/repository/net/bytebuddy/byte-buddy-agent/1.17.6/byte-buddy-agent-1.17.6.jar)
+           WARNING: If a serviceability tool is in use, please run with 
-XX:+EnableDynamicAgentLoading to hide this warning
+           WARNING: If a serviceability tool is not in use, please run with 
-Djdk.instrument.traceUsage for more information
+           WARNING: Dynamic loading of agents will be disallowed by default in 
a future release
+      -->
+      <id>java-21-up</id>
       <activation>
-        <jdk>[1.7,1.8)</jdk>
+        <jdk>[21,)</jdk>
       </activation>
       <properties>
-        <commons.felix.version>3.5.1</commons.felix.version>
-        <commons.animal-sniffer.version>1.17</commons.animal-sniffer.version>
-        
<commons.biz.aQute.bndlib.version>3.5.0</commons.biz.aQute.bndlib.version>
-        <commons.spotbugs.impl.version>4.8.6</commons.spotbugs.impl.version>
+        <argLine>-XX:+EnableDynamicAgentLoading</argLine>
       </properties>
     </profile>
     <profile>
-      <id>jdk8-plugin-fix-version</id>
+      <id>java-below-21</id>
       <activation>
-        <jdk>[1.8,1.9)</jdk>
+        <jdk>(,21)</jdk>
       </activation>
       <properties>
-        <commons.spdx.version>0.6.3</commons.spdx.version>
+        <!-- Checkstyle 13 requires Java 21 -->
+        <commons.checkstyle.version>12.3.1</commons.checkstyle.version>
+      </properties>
+    </profile>
+    <profile>
+      <id>java-below-17</id>
+      <activation>
+        <jdk>(,17)</jdk>
+      </activation>
+      <properties>
+        <!-- Checkstyle 11 requires Java 17 -->
+        <commons.checkstyle.version>10.26.1</commons.checkstyle.version>
+        <!-- maven-bundle-plugin 6 and bndlib 7 require Java 17 -->
+        <commons.felix.version>5.1.9</commons.felix.version>
+        
<commons.biz.aQute.bndlib.version>6.4.1</commons.biz.aQute.bndlib.version>
+        <!-- Apache RAT 0.18 requires Java 17 -->
+        <commons.rat.version>0.17</commons.rat.version>
+        <!-- spdx-maven-plugin 1.0 requires Java 17 -->
+        <commons.spdx.version>0.6.5</commons.spdx.version>
+      </properties>
+    </profile>
+    <profile>
+      <id>java-below-11</id>
+      <activation>
+        <jdk>(,11)</jdk>
+      </activation>
+      <properties>
+        <!-- SpotBugs 4.9.0 requires Java 11 -->
+        
<commons.spotbugs.plugin.version>4.8.6.8</commons.spotbugs.plugin.version>
         <commons.spotbugs.impl.version>4.8.6</commons.spotbugs.impl.version>
+        <!-- Checkstyle 10 requires Java 11 -->
         <commons.checkstyle.version>9.3</commons.checkstyle.version>
+        <!-- Mockito 5 requires Java 11 -->
+        <commons.mockito.version>4.11.0</commons.mockito.version>
+        <!-- spdx-maven-plugin 0.6.4 requires Java 11 -->
+        <commons.spdx.version>0.6.3</commons.spdx.version>
       </properties>
     </profile>
     <profile>
@@ -1763,71 +1806,13 @@
          </build>
     </profile>
     <profile>
-      <!-- Java 8-9 -->
-      <id>java-8-9</id>
+      <id>java-below-9</id>
       <activation>
-           <jdk>[1.8,10]</jdk>
+        <jdk>(,9)</jdk>
       </activation>
       <properties>
-        <!-- SpotBugs 4.9.0 requires Java 11 -->
-        
<commons.spotbugs.plugin.version>4.8.6.6</commons.spotbugs.plugin.version>
-        <commons.spotbugs.impl.version>4.8.6</commons.spotbugs.impl.version>
-        <commons.checkstyle.version>9.3</commons.checkstyle.version>
         <!-- Java EE Javadoc has been republished with Java > 8 and is no 
longer compatible with Javadoc 8 -->
         <commons.javadoc.javaee.link></commons.javadoc.javaee.link>
-        <!-- Mockito 5+ requires Java 11 -->
-        <commons.mockito.version>4.11.0</commons.mockito.version>
-      </properties>
-    </profile>
-    <profile>
-      <!-- Java 11-16 -->
-      <id>java-11-16</id>
-      <activation>
-           <jdk>[11,16]</jdk>
-      </activation>
-      <properties>
-        <commons.checkstyle.version>10.26.1</commons.checkstyle.version>
-        <!-- spdx can require Java 17 depending on undocumented behavior which 
kicks in for us here on macOS (but not on Java 8 somehow). -->
-        <commons.spdx.version>0.5.5</commons.spdx.version>
-      </properties>
-    </profile>
-    <profile>
-      <!-- Java 17-20 -->
-      <id>java-17-20</id>
-      <activation>
-           <jdk>[17,20]</jdk>
-      </activation>
-      <properties>
-        <commons.checkstyle.version>12.3.1</commons.checkstyle.version>
-      </properties>
-    </profile>
-    <profile>
-      <!-- Java 17 and up -->
-      <id>java-17-up</id>
-      <activation>
-        <jdk>[17,)</jdk>
-         </activation>
-      <properties>
-        <commons.felix.version>6.2.0</commons.felix.version>
-        
<commons.biz.aQute.bndlib.version>7.5.0</commons.biz.aQute.bndlib.version>
-        <commons.rat.version>0.18</commons.rat.version>
-      </properties>
-    </profile>
-    <profile>
-      <!-- Java 21 and up -->
-      <!-- Use -XX:+EnableDynamicAgentLoading on the argument line to avoid 
JVM warnings when tests use Mockito and ByteBuddy:
-           WARNING: A Java agent has been loaded dynamically 
(/Users/garygregory/.m2/repository/net/bytebuddy/byte-buddy-agent/1.17.6/byte-buddy-agent-1.17.6.jar)
-           WARNING: If a serviceability tool is in use, please run with 
-XX:+EnableDynamicAgentLoading to hide this warning
-           WARNING: If a serviceability tool is not in use, please run with 
-Djdk.instrument.traceUsage for more information
-           WARNING: Dynamic loading of agents will be disallowed by default in 
a future release
-      -->
-      <id>java-21-up</id>
-      <activation>
-        <jdk>[21,)</jdk>
-         </activation>
-      <properties>
-        <commons.checkstyle.version>14.4.0</commons.checkstyle.version>
-        <argLine>-XX:+EnableDynamicAgentLoading</argLine>
       </properties>
     </profile>
     <!-- allow simple creation of the site without any optional reports -->
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 24a9ce0..823a81b 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -61,6 +61,8 @@ The <action> type attribute can be add, update, fix, or 
remove.
         <action type="fix" dev="aherbert" due-to="Alex Herbert">Document the 
use of @{argLine} (not ${argLine}) to preserve the JaCoCo agent when a 
component sets the maven-surefire-plugin argLine.</action>
         <!-- ADD -->
         <!-- UPDATE -->
+        <action type="update" dev="pkarwasz" due-to="Piotr P. Karwasz">Rename 
the JDK-activated profiles to `java-N-up` and `java-below-N`.</action>
+        <action type="remove" dev="pkarwasz" due-to="Piotr P. Karwasz">Remove 
the `jdk7-plugin-fix-version` profile, since Java 8 or later is 
required.</action>
         <action type="update" dev="ggregory" due-to="Gary Gregory">Bump 
com.puppycrawl.tools:checkstyle from 14.3.0 to 14.4.0 on Java 21 and 
up.</action>
         <action type="update" dev="ggregory" due-to="Gary Gregory">Bump 
commons.pmd-impl.version from 7.28.0 to 7.30.0.</action>
         <action type="update" dev="ggregory" due-to="Gary Gregory">Bump 
com.github.siom79.japicmp:japicmp-maven-plugin from 0.26.5 to 0.28.0.</action>
@@ -75,6 +77,8 @@ The <action> type attribute can be add, update, fix, or 
remove.
         <action type="update" dev="ggregory" due-to="Gary Gregory">Bump 
org.codehaus.mojo:exec-maven-plugin from 3.6.4 to 3.7.0.</action>
         <action type="update" dev="ggregory" due-to="Gary Gregory">Bump 
org.codehaus.mojo:taglist-maven-plugin from 3.2.3 to 3.3.0.</action>
         <action type="update" dev="ggregory" due-to="Gary Gregory">Bump 
org.codehaus.mojo:versions-maven-plugin from 2.24.0 to 2.25.2.</action>
+        <action type="update" dev="pkarwasz" due-to="Piotr P. Karwasz">Bump 
com.github.spotbugs:spotbugs-maven-plugin from 4.8.6.6 to 4.8.6.8 on Java 8 to 
10.</action>
+        <action type="update" dev="pkarwasz" due-to="Piotr P. Karwasz">Bump 
org.spdx:spdx-maven-plugin from 0.5.5 to 0.6.5 on Java 11 to 16.</action>
         <action type="update" dev="pkarwasz" due-to="Piotr P. Karwasz">Bump 
org.mockito:mockito-bom from 4.11.0 to 5.25.0 on Java 11 and up; Mockito 4 
fails on Java 28.</action>
       </release>
       <release version="107" date="2026-10-28" description="This is a feature 
and maintenance release. Java 8 or later is required.">

Reply via email to