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 {