This is an automated email from the ASF dual-hosted git repository.
paulk-asert pushed a commit to branch GROOVY_5_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/GROOVY_5_0_X by this push:
new d5e442f85f fix grape directory name regression
d5e442f85f is described below
commit d5e442f85f38a83ce3b906946951d485e678ea60
Author: Paul King <[email protected]>
AuthorDate: Mon Jul 13 19:56:51 2026 +1000
fix grape directory name regression
---
build-logic/src/main/groovy/org.apache.groovy-tested.gradle | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/build-logic/src/main/groovy/org.apache.groovy-tested.gradle
b/build-logic/src/main/groovy/org.apache.groovy-tested.gradle
index 92d8005352..84e6d8ae17 100644
--- a/build-logic/src/main/groovy/org.apache.groovy-tested.gradle
+++ b/build-logic/src/main/groovy/org.apache.groovy-tested.gradle
@@ -43,7 +43,12 @@ dependencies {
tasks.withType(Test).configureEach {
def fs = objects.newInstance(TestServices).fileSystemOperations
- def grapeDirectory = new File(temporaryDir, 'grape')
+ // Must be '.groovy': the test JVM runs with -Duser.home=<temporaryDir>,
and the
+ // 'cachedGrapes' resolver in defaultGrapeConfig.xml reads
${user.home}/.groovy/grapes.
+ // Naming it anything else makes grabs download to grape.root while
cachedGrapes looks
+ // elsewhere, so @GrabConfig(autoDownload=false) can only resolve from
stale state that
+ // doFirst never cleans (it deletes only this directory).
+ def grapeDirectory = new File(temporaryDir, '.groovy')
def jdk8 = ['-XX:+UseConcMarkSweepGC']
def jdk9 = ['-Djava.locale.providers=COMPAT,SPI']
def common = ['-ea', "-Xms${groovyJUnit_ms}", "-Xmx${groovyJUnit_mx}",
'-Duser.language=en']