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 2020/12/06 12:14:50 UTC

[groovy] 02/02: cleaner separation of sdk components (thanks Cédric)

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 ce36df8004875e4acc02e1e20926f936f25356a6
Author: Paul King <pa...@asert.com.au>
AuthorDate: Sun Dec 6 22:14:39 2020 +1000

    cleaner separation of sdk components (thanks Cédric)
---
 .../main/groovy/org.apache.groovy-distribution.gradle    | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/buildSrc/src/main/groovy/org.apache.groovy-distribution.gradle b/buildSrc/src/main/groovy/org.apache.groovy-distribution.gradle
index 63eee5e..363edab 100644
--- a/buildSrc/src/main/groovy/org.apache.groovy-distribution.gradle
+++ b/buildSrc/src/main/groovy/org.apache.groovy-distribution.gradle
@@ -228,14 +228,26 @@ def bin = configurations.create("distributionBinary") {
     outgoing {
         artifacts {
             artifact tasks.named('distBin')
+        }
+    }
+}
+component.addVariantsFromConfiguration(bin) {
+    mapToOptional()
+}
+
+def sdkElements = configurations.create("sdkElements") {
+    canBeConsumed = false
+    canBeResolved = false
+    outgoing {
+        artifacts {
             artifact tasks.named('distSrc')
             artifact tasks.named('distDoc')
             artifact tasks.named('distSdk')
         }
     }
 }
-component.addVariantsFromConfiguration(bin) {
-    mapToOptional()
+signing {
+    sign sdkElements
 }