GEODE-781: Another nexus / Jenkins fix for uploading 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/f06a43fe Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/f06a43fe Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/f06a43fe Branch: refs/heads/master Commit: f06a43fe8dbaee00b49d892d6b5207dd02c3fae6 Parents: fa60ac7 Author: Anthony Baker <aba...@apache.org> Authored: Fri Jan 15 11:36:34 2016 -0800 Committer: Anthony Baker <aba...@apache.org> Committed: Sat Jan 16 09:36:06 2016 -0800 ---------------------------------------------------------------------- build.gradle | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/f06a43fe/build.gradle ---------------------------------------------------------------------- diff --git a/build.gradle b/build.gradle index 6004226..90d4a60 100755 --- a/build.gradle +++ b/build.gradle @@ -521,10 +521,8 @@ subprojects { // 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) - } + tasks.getByName('uploadArchives').doFirst { + repositories.each { it.snapshotRepository.id = 'apache.snapshots.https' } } }