groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject groovy git commit: GROOVY-8482: Build refactor impacts on release process (additional tweaks)
Date Tue, 27 Feb 2018 12:07:08 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_5_X 7208bf4cb -> 273ef950a


GROOVY-8482: Build refactor impacts on release process (additional tweaks)

defer setting packaging for all pom until after it's configured


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/273ef950
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/273ef950
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/273ef950

Branch: refs/heads/GROOVY_2_5_X
Commit: 273ef950af8dcaa1ca606c981d59d0cd37d08255
Parents: 7208bf4
Author: paulk <paulk@asert.com.au>
Authored: Tue Feb 27 22:06:56 2018 +1000
Committer: paulk <paulk@asert.com.au>
Committed: Tue Feb 27 22:06:56 2018 +1000

----------------------------------------------------------------------
 gradle/upload.gradle | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/273ef950/gradle/upload.gradle
----------------------------------------------------------------------
diff --git a/gradle/upload.gradle b/gradle/upload.gradle
index 15f198f..7413d8c 100644
--- a/gradle/upload.gradle
+++ b/gradle/upload.gradle
@@ -246,11 +246,12 @@ ext.pomAll = {
     // pom for "all" dependencies
     def allpom = pom('all', pomConfigureClosureWithoutTweaks)
     allpom.artifactId = 'groovy-all'
-    allpom.packaging = 'pom'
     allpom.whenConfigured { p ->
         // this is the only way to get a handle on `maven.Dependency`
         def dependencyClass = p.dependencies[0].getClass()
         p.dependencies.clear()
+        // defer setting packaging until here otherwise gets overwritten
+        p.packaging - 'pom'
         allprojects {
             if (it.name.startsWith('groovy')) {
                 def dep = dependencyClass.newInstance()


Mime
View raw message