geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aba...@apache.org
Subject [43/50] [abbrv] incubator-geode git commit: GEODE-781: Match repository id to allow Jenkins to upload Maven artifacts
Date Mon, 08 Feb 2016 17:03:58 GMT
GEODE-781: Match repository id to allow Jenkins to upload Maven artifacts


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/fa60ac7a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/fa60ac7a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/fa60ac7a

Branch: refs/heads/master
Commit: fa60ac7acabd3deb6206002685810ce4a7897674
Parents: e9bf253
Author: Anthony Baker <abaker@apache.org>
Authored: Fri Jan 15 11:07:11 2016 -0800
Committer: Anthony Baker <abaker@apache.org>
Committed: Sat Jan 16 09:35:57 2016 -0800

----------------------------------------------------------------------
 build.gradle | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/fa60ac7a/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 2322120..6004226 100755
--- a/build.gradle
+++ b/build.gradle
@@ -475,7 +475,6 @@ subprojects {
 
   // publishing configuration
   apply plugin: 'com.bmuschko.nexus'
-  apply plugin: 'maven-publish-auth'
   
   extraArchive {
     sources = true
@@ -518,6 +517,17 @@ subprojects {
     }
   }
 
+  // Jenkins stores auth information in settings.xml.  We apply the maven-publish-auth plugin
to read that
+  // from gradle.  However, we must match the repository id which the nexus plugin is not
exposing.
+  apply plugin: 'maven-publish-auth'
+  afterEvaluate {
+    tasks.getByName('uploadArchives').repositories.mavenDeployer() {
+      if (project.nexus.snapshotRepositoryUrl) {
+        repository(id: 'apache.snapshots.https', url: project.nexus.snapshotRepositoryUrl)
+      }
+    }
+  }
+
   // Make precheckin task run all validation tests for checking in code.
   task precheckin (dependsOn: [ build, integrationTest, distributedTest ]) {
     description 'Run this task before checking in code to validate changes. This task combines
the following tasks: build, integrationTest, and distributedTest'
@@ -535,4 +545,3 @@ subprojects {
   // Make sure clean task for rootProject runs last
   clean.finalizedBy rootProject.clean
 }
-


Mime
View raw message