(geronimo-mail) 01/02: Require JDK 21 to build: James 3.9 test dependencies ship Java 21 class files

[email protected] Sat, 18 Jul 2026 06:44:21 +0000
Newsgroups gmane.comp.java.geronimo.cvs
Message-ID <[email protected]>
This is an automated email from the ASF dual-hosted git repository.

rzo1 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/geronimo-mail.git

commit da136fc9fe6da1084d61aa816275016f663b36a1
Author: Richard Zowalla <[email protected]>
AuthorDate: Sat Jul 18 08:43:30 2026 +0200

    Require JDK 21 to build: James 3.9 test dependencies ship Java 21 class files
    
    The compiled artifacts still target Java 11; only building (compiling and
    running the test suite against the embedded James 3.9 servers) needs JDK 21.
---
 .github/workflows/ci.yml       | 2 +-
 geronimo-mail_2.1_impl/pom.xml | 6 ++++--
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 46d44de..0486b89 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -33,7 +33,7 @@ jobs:
     - name: Set up JDK
       uses: actions/setup-java@v4
       with:
-        java-version: '11'
+        java-version: '21'
         distribution: 'temurin'
 
     - name: Cache Maven packages
diff --git a/geronimo-mail_2.1_impl/pom.xml b/geronimo-mail_2.1_impl/pom.xml
index e491889..92fa3dd 100644
--- a/geronimo-mail_2.1_impl/pom.xml
+++ b/geronimo-mail_2.1_impl/pom.xml
@@ -160,9 +160,11 @@
                         </goals>
                         <configuration>
                             <rules>
-                                <!-- Allow any Java >= 11 -->
+                                <!-- Building needs JDK 21+: the James 3.9 test
+                                     dependencies ship Java 21 class files.
+                                     Artifacts still target Java 11. -->
                                 <requireJavaVersion>
-                                    <version>[11,)</version>
+                                    <version>[21,)</version>
                                 </requireJavaVersion>
 
                                 <!-- Allow any Maven >= 2.0.7 -->