You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by ab...@apache.org on 2016/01/15 20:09:18 UTC
incubator-geode git commit: GEODE-781: Match repository id to allow
Jenkins to upload Maven artifacts
Repository: incubator-geode
Updated Branches:
refs/heads/feature/GEODE-781 82f15bdca -> 69ead9c2b
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/69ead9c2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/69ead9c2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/69ead9c2
Branch: refs/heads/feature/GEODE-781
Commit: 69ead9c2bbc8ee5cd0a1e306bf8097dbd3dded20
Parents: 82f15bd
Author: Anthony Baker <ab...@apache.org>
Authored: Fri Jan 15 11:07:11 2016 -0800
Committer: Anthony Baker <ab...@apache.org>
Committed: Fri Jan 15 11:07:11 2016 -0800
----------------------------------------------------------------------
build.gradle | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/69ead9c2/build.gradle
----------------------------------------------------------------------
diff --git a/build.gradle b/build.gradle
index 9160839..524fe00 100755
--- a/build.gradle
+++ b/build.gradle
@@ -488,7 +488,6 @@ subprojects {
// publishing configuration
apply plugin: 'com.bmuschko.nexus'
- apply plugin: 'maven-publish-auth'
extraArchive {
sources = true
@@ -531,6 +530,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'
@@ -548,4 +558,3 @@ subprojects {
// Make sure clean task for rootProject runs last
clean.finalizedBy rootProject.clean
}
-