You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2022/09/21 04:55:38 UTC

[groovy] branch master updated: GROOVY-10543 Publish groovy-all as library (sync with Groovy 4_0_X) It will be easier to make changes in one go at a later stage if we indeed decide to offer a platform capability

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


The following commit(s) were added to refs/heads/master by this push:
     new 64917dbf77 GROOVY-10543 Publish groovy-all as library (sync with Groovy 4_0_X) It will be easier to make changes in one go at a later stage if we indeed decide to offer a platform capability
64917dbf77 is described below

commit 64917dbf7787ad773b256b73f764f7528435da76
Author: Paul King <pa...@asert.com.au>
AuthorDate: Wed Sep 21 14:55:21 2022 +1000

    GROOVY-10543 Publish groovy-all as library (sync with Groovy 4_0_X)
    It will be easier to make changes in one go at a later stage if we indeed decide to offer a platform capability
---
 .../src/main/groovy/org.apache.groovy-all.gradle        | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/build-logic/src/main/groovy/org.apache.groovy-all.gradle b/build-logic/src/main/groovy/org.apache.groovy-all.gradle
index 3e71737431..59539204ff 100644
--- a/build-logic/src/main/groovy/org.apache.groovy-all.gradle
+++ b/build-logic/src/main/groovy/org.apache.groovy-all.gradle
@@ -112,4 +112,21 @@ configurations {
             }
         }
     }
+    // GROOVY-10543 - The platform configurations are published as libraries
+    apiElements {
+        attributes {
+            attribute(Category.CATEGORY_ATTRIBUTE, objects.named(Category, Category.LIBRARY))
+            attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, objects.named(LibraryElements, LibraryElements.JAR))
+            attribute(Bundling.BUNDLING_ATTRIBUTE, objects.named(Bundling, Bundling.EXTERNAL))
+            attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage, Usage.JAVA_API))
+        }
+    }
+    runtimeElements {
+        attributes {
+            attribute(Category.CATEGORY_ATTRIBUTE, objects.named(Category, Category.LIBRARY))
+            attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, objects.named(LibraryElements, LibraryElements.JAR))
+            attribute(Bundling.BUNDLING_ATTRIBUTE, objects.named(Bundling, Bundling.EXTERNAL))
+            attribute(Usage.USAGE_ATTRIBUTE, objects.named(Usage, Usage.JAVA_RUNTIME))
+        }
+    }
 }