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

jamesfredley pushed a commit to branch grails8-groovy5-sb4
in repository https://gitbox.apache.org/repos/asf/grails-core.git


The following commit(s) were added to refs/heads/grails8-groovy5-sb4 by this 
push:
     new 423022f17c fix(deps): pin Groovy to released 5.0.6 to unblock CI 
dependency resolution
423022f17c is described below

commit 423022f17c21eb11c3d9f28474595c107f8da1ed
Author: James Fredley <[email protected]>
AuthorDate: Wed May 20 13:37:24 2026 -0400

    fix(deps): pin Groovy to released 5.0.6 to unblock CI dependency resolution
    
    Apache's snapshot retention has purged the 5.0.6-SNAPSHOT artifacts from
    the Apache Nexus snapshot repository. Only the empty maven-metadata.xml.*
    hash files remain dated 2026-05-08:
    
      
https://repository.apache.org/content/groups/snapshots/org/apache/groovy/groovy/5.0.6-SNAPSHOT/
        (404 on maven-metadata.xml, 404 on every per-build JAR)
    
    This blocks every CI job at the dependency resolution step:
    
      Could not find org.apache.groovy:groovy:5.0.6-SNAPSHOT
      Could not find org.apache.groovy:groovy-bom:5.0.6-SNAPSHOT
      Could not find org.apache.groovy:groovy-templates:5.0.6-SNAPSHOT
      Could not find org.apache.groovy:groovy-xml:5.0.6-SNAPSHOT
      Could not find org.apache.groovy:groovy-json:5.0.6-SNAPSHOT
      Could not find org.apache.groovy:groovy-sql:5.0.6-SNAPSHOT
    
    Apache Groovy 5.0.6 was released to Maven Central on 2026-05-04 and is
    resolvable from repo1.maven.org. None of the six remaining workarounds
    in this PR depend on the 4 post-tag commits on GROOVY_5_0_X:
    
      - da06ae61 GROOVY-11989: javaparser-core 3.28.0 -> 3.28.1 (dep bump)
      - a0e717b5 GROOVY-11990: jackson 2.21.3                    (dep bump)
      - 75727913 Update dependency metadata                      (admin)
      - a1c006c9 GROOVY-11996: groovy.truth.file.exists.enabled  (opt-out
                flag targeting 5.0.7; the PR's File.asBoolean fix in
                TemplateRendererImpl is the real fix and does not need it)
    
    So pinning to released 5.0.6 is functionally equivalent for this PR and
    fixes CI immediately. Verified locally:
    
      > Task :grails-test-examples-compile-static:integrationTest
      BookServiceSpec > test validateBooks method PASSED
        JVM 21.0.10 | Grails 8.0.0-SNAPSHOT | Groovy 5.0.6 | Spring Boot 4.0.5
    
    The apache snapshots repo declaration in settings.gradle is kept as-is
    so the groovy-joint-workflow CI job can still swap in a Groovy snapshot
    when needed.
    
    Updates both groovy.version entries in dependencies.gradle:
      * Main bom (line 81)
      * grails-micronaut-bom strictly-override (line 222)
    
    Assisted-by: opencode:claude-4.7-opus
---
 dependencies.gradle | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dependencies.gradle b/dependencies.gradle
index 68b922216a..13e8db9a5f 100644
--- a/dependencies.gradle
+++ b/dependencies.gradle
@@ -78,7 +78,7 @@ ext {
             'commons-codec.version'         : '1.21.0',
             'commons-lang3.version'         : '3.20.0',
             'geb-spock.version'             : '8.0.1',
-            'groovy.version'                : '5.0.6-SNAPSHOT',
+            'groovy.version'                : '5.0.6',
             'hibernate-groovy-proxy.version': '1.1',
             'jakarta-servlet-api.version'   : '6.1.0',
             'jakarta-validation.version'    : '3.1.1',
@@ -219,7 +219,7 @@ ext {
                 // Keep aligned with bomDependencyVersions['groovy.version']; 
the main bom now uses
                 // Groovy 5, so the micronaut bom must match to avoid 
validateDependencyVersions
                 // failures from transitive dependencies upgrading groovy-bom 
past the pinned version.
-                'groovy.version'  : '5.0.6-SNAPSHOT',
+                'groovy.version'  : '5.0.6',
                 'spock.version'   : '2.4-groovy-5.0',
                 'protobuf.version': '4.30.2',
         ]

Reply via email to