add --no-build-cache when building for release
diff --git a/gradle/phase1.gradle b/gradle/phase1.gradle
index 122c40b..ba2990d 100644
--- a/gradle/phase1.gradle
+++ b/gradle/phase1.gradle
@@ -151,7 +151,8 @@
     if (project.hasProperty('useAntlr4')) {
         theArgs << "-PuseAntlr4=${getProperty('useAntlr4')}"
     }
-    theArgs << "-PartifactoryContext=https://groovy.jfrog.io/groovy/"
+    theArgs << '--no-build-cache'
+    theArgs << "-PartifactoryContext=https://groovy.jfrog.io/groovy/" // apache-groovy for Groovy 4
     theArgs << "-PartifactoryRepoKey=${releaseBuild ? 'libs-release-local' : 'libs-snapshot-local'}"
     if (project.hasProperty('skipPublish')) {
         theArgs += ['install', 'dist']