polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject polygene-java git commit: build: fix maven artifacts upload
Date Tue, 16 May 2017 11:44:21 GMT
Repository: polygene-java
Updated Branches:
  refs/heads/develop 8e936ae94 -> 3f76f6ebc


build: fix maven artifacts upload


Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/3f76f6eb
Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/3f76f6eb
Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/3f76f6eb

Branch: refs/heads/develop
Commit: 3f76f6ebc39e62ed358941759762a9e0083d3ebf
Parents: 8e936ae
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Tue May 16 13:44:00 2017 +0200
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Tue May 16 13:44:00 2017 +0200

----------------------------------------------------------------------
 .../apache/polygene/gradle/code/PublishingPlugin.groovy   | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/3f76f6eb/buildSrc/src/main/groovy/org/apache/polygene/gradle/code/PublishingPlugin.groovy
----------------------------------------------------------------------
diff --git a/buildSrc/src/main/groovy/org/apache/polygene/gradle/code/PublishingPlugin.groovy
b/buildSrc/src/main/groovy/org/apache/polygene/gradle/code/PublishingPlugin.groovy
index be239b8..177d865 100644
--- a/buildSrc/src/main/groovy/org/apache/polygene/gradle/code/PublishingPlugin.groovy
+++ b/buildSrc/src/main/groovy/org/apache/polygene/gradle/code/PublishingPlugin.groovy
@@ -149,7 +149,7 @@ class PublishingPlugin implements Plugin<Project>
       }
     }
     mavenDeployer.configuration = project.configurations.getByName( 'deployersJars' )
-    def repository = new MavenRemoteRepository()
+    def repository = config.releases ? mavenDeployer.repository : mavenDeployer.snapshotRepository
     repository.id = config.repositoryName
     repository.url = config.repositoryUrl
     if( config.username )
@@ -157,14 +157,6 @@ class PublishingPlugin implements Plugin<Project>
       repository.authentication.userName = config.username
       repository.authentication.password = config.password
     }
-    if( config.releases )
-    {
-      mavenDeployer.repository = repository
-    }
-    else
-    {
-      mavenDeployer.snapshotRepository = repository
-    }
   }
 
   private static void configureStageArchives( Project project )


Mime
View raw message