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/10/20 01:11:42 UTC

[groovy] branch master updated: Fix incorrect BOM setup (closes #1406)

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 543ccc8  Fix incorrect BOM setup (closes #1406)
543ccc8 is described below

commit 543ccc8a4d7aa4c982f1001342beffeaa624cc9c
Author: Cedric Champeau <cc...@apache.org>
AuthorDate: Mon Oct 19 14:53:13 2020 +0200

    Fix incorrect BOM setup (closes #1406)
    
    The BOM setup wasn't correct: a platform depends on all its components
    and all its components reference the platform.
---
 subprojects/groovy-bom/build.gradle | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/subprojects/groovy-bom/build.gradle b/subprojects/groovy-bom/build.gradle
index 8abb57d..a3a04f0 100644
--- a/subprojects/groovy-bom/build.gradle
+++ b/subprojects/groovy-bom/build.gradle
@@ -22,10 +22,14 @@ plugins {
 
 dependencies {
     constraints {
-        api(platform(project(":groovy-all")))
         rootProject.allprojects { p ->
             p.pluginManager.withPlugin('org.apache.groovy-base') {
+                // add a dependency on all components of Groovy
                 api(p)
+                // and each component references back the BOM
+                p.dependencies {
+                    api(platform(project((":groovy-bom"))))
+                }
             }
         }
     }