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/25 16:11:12 UTC

(grails-core) 05/07: Derive gradle-groovy.version from GroovySystem.version

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

jamesfredley pushed a commit to branch upgrade/gradle-9.3.1
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit cc2f85fe074995e365117f7c74d2ff2cb6b2945c
Author: James Fredley <ja...@users.noreply.github.com>
AuthorDate: Sat Apr 25 11:27:32 2026 -0400

    Derive gradle-groovy.version from GroovySystem.version
    
    Replaces the hard-coded '4.0.31' literal in dependencies.gradle with
    GroovySystem.version, the static accessor for the Groovy version
    currently loaded by the running Gradle JVM.
    
    This 'gradle-groovy.version' entry feeds the grails-gradle-bom (the BOM
    consumed by Grails Gradle plugin authors), where it controls which
    groovy-bom platform is imported. Gradle plugin code is compiled against
    and runs in Gradle's Groovy classpath, so pinning this to a value other
    than what Gradle ships only adds drift risk - exactly the concern
    jdaugherty raised in the PR #15365 review thread on dependencies.gradle
    line 32.
    
    With Gradle 9.4.1 the published gradle-groovy.version becomes 4.0.29
    (matching gradle -v output), verified in
    grails-gradle/bom/build/publications/maven/pom-default.xml after
    running gradle :grails-gradle-bom:generatePomFileForMavenPublication.
    The application-side groovy.version (4.0.31, used by grails-bom for
    runtime Groovy) is unchanged.
    
    Future Gradle wrapper bumps will flow through automatically without a
    parallel constants update here.
    
    Assisted-by: claude-code:claude-opus-4-7
---
 dependencies.gradle | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dependencies.gradle b/dependencies.gradle
index 31ac0c7b68..78b15f3ff1 100644
--- a/dependencies.gradle
+++ b/dependencies.gradle
@@ -29,7 +29,7 @@ ext {
             'byte-buddy.version'            : '1.18.8',
             'commons-text.version'          : '1.15.0',
             'directory-watcher.version'     : '0.19.1',
-            'gradle-groovy.version'         : '4.0.31',
+            'gradle-groovy.version'         : GroovySystem.version,
             'gradle-spock.version'          : '2.3-groovy-4.0',
             'grails-publish-plugin.version' : '1.0.0-SNAPSHOT',
             'jansi.version'                 : '2.4.2',