Added nexus-staging plugin

This commit is contained in:
Jakub Kubrynski
2015-03-21 23:01:44 +01:00
parent eac0e67c15
commit 1387e47f16
3 changed files with 11 additions and 4 deletions

View File

@@ -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" }

View File

@@ -1,2 +1,2 @@
sonatypeUsername =
sonatypePassword =
nexusUsername =
nexusPassword =

View File

@@ -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 {