Added nexus-staging plugin
This commit is contained in:
@@ -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" }
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
sonatypeUsername =
|
||||
sonatypePassword =
|
||||
nexusUsername =
|
||||
nexusPassword =
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user