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

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 42dd0c07457cfb9fb55a4ec08baac1b5b75b9cef
Author: Paul King <pa...@asert.com.au>
AuthorDate: Fri Apr 19 14:27:59 2024 +1000

    deprecated build usage
---
 build-logic/src/main/groovy/org.apache.groovy-base.gradle | 4 ++--
 build.gradle                                              | 4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/build-logic/src/main/groovy/org.apache.groovy-base.gradle 
b/build-logic/src/main/groovy/org.apache.groovy-base.gradle
index 4ed1ee4e6a..86ee11bcfb 100644
--- a/build-logic/src/main/groovy/org.apache.groovy-base.gradle
+++ b/build-logic/src/main/groovy/org.apache.groovy-base.gradle
@@ -307,8 +307,8 @@ components.groovyLibrary {
 // By declaring a codehaus capability we can tell Gradle that the user has to
 // choose between "old" groovy and "new" groovy
 List<String> capabilities = [
-        
"org.codehaus.groovy:${archivesName}:${sharedConfiguration.groovyVersion.get()}",
-        
"org.apache.groovy:${archivesName}:${sharedConfiguration.groovyVersion.get()}"
+        
"org.codehaus.groovy:${base.archivesName}:${sharedConfiguration.groovyVersion.get()}",
+        
"org.apache.groovy:${base.archivesName}:${sharedConfiguration.groovyVersion.get()}"
 ]
 int targetJvmVersion = 
Integer.valueOf(sharedConfiguration.targetJavaVersion.get())
 // First we create the "API" and "runtime" variants of Groovy for publication
diff --git a/build.gradle b/build.gradle
index 457151df4a..f24ee350b3 100644
--- a/build.gradle
+++ b/build.gradle
@@ -33,7 +33,9 @@ buildScanRecipes {
     recipes 'git-status', 'gc-stats', 'teamcity', 'travis-ci'
 }
 
-archivesName = 'groovy'
+base {
+    archivesName = 'groovy'
+}
 
 groovyLibrary {
     registerOptionalFeature 'gpars'

Reply via email to