From 1387e47f16acf1bc3b51b3982440c0a6cc15b5b6 Mon Sep 17 00:00:00 2001 From: Jakub Kubrynski Date: Sat, 21 Mar 2015 23:01:44 +0100 Subject: [PATCH] Added nexus-staging plugin --- build.gradle | 7 +++++++ gradle.properties | 4 ++-- gradle/release.gradle | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 5d7f1b504f..e0a87bd555 100644 --- a/build.gradle +++ b/build.gradle @@ -4,10 +4,17 @@ buildscript { } dependencies { classpath "pl.allegro.tech.build:axion-release-plugin:1.2.2" + classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.1" } } apply plugin: "pl.allegro.tech.build.axion-release" +apply plugin: 'io.codearte.nexus-staging' + +nexusStaging { + packageGroup = "io.codearte" + stagingProfileId = '93c08fdebde1ff' +} scmVersion { tag { prefix = "accurest" } diff --git a/gradle.properties b/gradle.properties index 87021638cf..fe3cdf2fd8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ -sonatypeUsername = -sonatypePassword = \ No newline at end of file +nexusUsername = +nexusPassword = \ No newline at end of file diff --git a/gradle/release.gradle b/gradle/release.gradle index e772848864..34e8ae08ef 100644 --- a/gradle/release.gradle +++ b/gradle/release.gradle @@ -25,11 +25,11 @@ uploadArchives { beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") { - authentication(userName: sonatypeUsername, password: sonatypePassword) + authentication(userName: nexusUsername, password: nexusPassword) } snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") { - authentication(userName: sonatypeUsername, password: sonatypePassword) + authentication(userName: nexusUsername, password: nexusPassword) } pom.project {