You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@grails.apache.org by ja...@apache.org on 2026/04/27 16:23:56 UTC

(grails-spring-security) branch fix/java-21-baseline-8.0.x created (now 742602b57)

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

jamesfredley pushed a change to branch fix/java-21-baseline-8.0.x
in repository https://gitbox.apache.org/repos/asf/grails-spring-security.git


      at 742602b57 Bump Java baseline from 17 to 21 for Grails 8

This branch includes the following new commits:

     new 742602b57 Bump Java baseline from 17 to 21 for Grails 8

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(grails-spring-security) 01/01: Bump Java baseline from 17 to 21 for Grails 8

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jamesfredley pushed a commit to branch fix/java-21-baseline-8.0.x
in repository https://gitbox.apache.org/repos/asf/grails-spring-security.git

commit 742602b575aae2328dee9fb331b1457952e0744b
Author: James Fredley <ja...@users.noreply.github.com>
AuthorDate: Mon Apr 27 12:23:43 2026 -0400

    Bump Java baseline from 17 to 21 for Grails 8
    
    The 8.0.x branch resolves grails-gradle-bom:8.0.0-SNAPSHOT, which now
    pulls Gradle plugins (cloud.wondrify:asset-pipeline-gradle,
    org.apache.grails:grails-gradle-plugins, org.apache.grails.gradle:grails-publish)
    that require a JVM runtime of at least 21. Building under Java 17 fails
    during ':buildSrc:compileGroovy' with:
    
        Could not resolve cloud.wondrify:asset-pipeline-gradle.
           > Dependency requires at least JVM runtime version 21.
             This build uses a Java 17 JVM.
    
    This breaks the CI and RAT Report workflows on the 8.0.x branch (e.g. run
    25003047902). Align the entire 8.0.x toolchain with the Grails 8 / Spring
    Boot 4 / Spring Framework 7 Java 21 baseline:
    
    - .github/workflows/gradle.yml: java-version 17 -> 21 (coreTests,
      functionalTests, publish jobs)
    - .github/workflows/rat.yml: java-version 17 -> 21
    - .github/workflows/release.yml: JAVA_VERSION 17.0.17 -> 21.0.10
    - gradle.properties: javaVersion 17 -> 21 (drives compileJava.options.release
      via gradle/java-config.gradle, so produced bytecode now targets 21)
    - .sdkmanrc: java=17.0.17-librca -> 21.0.10-librca (kept in sync with
      release.yml JAVA_VERSION per the comment in that file)
    - etc/bin/Dockerfile: bellsoft/liberica-openjdk-debian:17.0.17 -> 21.0.10
    
    The Liberica 21.0.10 pin is verified to exist on SDKMAN
    (21.0.10-librca) and on Docker Hub
    (bellsoft/liberica-openjdk-debian:21.0.10).
    
    Assisted-by: claude-code:claude-opus-4
---
 .github/workflows/gradle.yml  | 6 +++---
 .github/workflows/rat.yml     | 2 +-
 .github/workflows/release.yml | 2 +-
 .sdkmanrc                     | 2 +-
 etc/bin/Dockerfile            | 2 +-
 gradle.properties             | 2 +-
 6 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml
index ee5a47234..76afc3912 100644
--- a/.github/workflows/gradle.yml
+++ b/.github/workflows/gradle.yml
@@ -37,7 +37,7 @@ jobs:
       - name: "☕️ Setup JDK"
         uses: actions/setup-java@v4
         with:
-          java-version: 17
+          java-version: 21
           distribution: liberica
       - name: "🐘 Setup Gradle"
         uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5.0.2
@@ -64,7 +64,7 @@ jobs:
       - name: "☕️ Setup JDK"
         uses: actions/setup-java@v4
         with:
-          java-version: 17
+          java-version: 21
           distribution: liberica
       - name: "🐘 Setup Gradle"
         uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5.0.2
@@ -90,7 +90,7 @@ jobs:
       - name: "☕️ Setup JDK"
         uses: actions/setup-java@v4
         with:
-          java-version: 17
+          java-version: 21
           distribution: liberica
       - name: "🐘 Setup Gradle"
         uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5.0.2
diff --git a/.github/workflows/rat.yml b/.github/workflows/rat.yml
index fed8dcbbc..a7f0bda64 100644
--- a/.github/workflows/rat.yml
+++ b/.github/workflows/rat.yml
@@ -36,7 +36,7 @@ jobs:
         uses: actions/setup-java@v4
         with:
           distribution: liberica
-          java-version: 17
+          java-version: 21
       - name: "🐘 Setup Gradle"
         uses: gradle/actions/setup-gradle@0723195856401067f7a2779048b490ace7a47d7c # v5.0.2
         with:
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 5551cd6c7..83196c174 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -24,7 +24,7 @@ env:
   GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
   GRAILS_PUBLISH_RELEASE: true
   JAVA_DISTRIBUTION: liberica
-  JAVA_VERSION: 17.0.17 # this must be a specific version for reproducible builds, keep it synced with .sdkmanrc
+  JAVA_VERSION: 21.0.10 # this must be a specific version for reproducible builds, keep it synced with .sdkmanrc
   PROJECT_DESC: > 
     Apache Grails Spring Security adds production-ready
     authentication and authorization to Apache Grails applications.
diff --git a/.sdkmanrc b/.sdkmanrc
index 84839beb1..f84f394c1 100644
--- a/.sdkmanrc
+++ b/.sdkmanrc
@@ -1,4 +1,4 @@
-java=17.0.17-librca
+java=21.0.10-librca
 gradle=8.14.4
 # This is here to support the test app generation in the *rest projects
 grails=7.0.7
\ No newline at end of file
diff --git a/etc/bin/Dockerfile b/etc/bin/Dockerfile
index 35d1855ff..b66d74f46 100644
--- a/etc/bin/Dockerfile
+++ b/etc/bin/Dockerfile
@@ -16,7 +16,7 @@
 # for testing in a container that is similar to the github action linux build environment
 # run this from the root of the project
 # `docker build -t grails:testing -f etc/bin/Dockerfile . && docker run -it --rm -v $(pwd):/home/groovy/project grails:testing bash`
-FROM bellsoft/liberica-openjdk-debian:17.0.17
+FROM bellsoft/liberica-openjdk-debian:21.0.10
 
 USER root
 RUN apt-get update && apt-get install -y curl unzip coreutils libdigest-sha-perl gpg vim sudo psmisc locales groovy rsync
diff --git a/gradle.properties b/gradle.properties
index 31ec4f4e4..c0607a7f3 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -18,7 +18,7 @@
 #
 projectVersion=8.0.0-SNAPSHOT
 grailsVersion=8.0.0-SNAPSHOT
-javaVersion=17
+javaVersion=21
 
 unboundidLdapSdkVersion=7.0.3
 apacheDsVersion=1.5.4