Skip to content

Commit

Permalink
add nexus-staging plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
gesellix committed Feb 9, 2021
1 parent a574457 commit a9354a4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
id("maven-publish")
id("signing")
id("io.freefair.maven-central.validate-poms") version "5.3.0"
id("io.codearte.nexus-staging") version "0.22.0"
}

repositories {
Expand Down Expand Up @@ -109,3 +110,8 @@ signing {
useInMemoryPgpKeys(signingKey, signingPassword)
sign(publishing.publications[publicationName])
}

nexusStaging {
username = System.getenv("SONATYPE_USERNAME") ?: findProperty("sonatype.username")
password = System.getenv("SONATYPE_PASSWORD") ?: findProperty("sonatype.password")
}

0 comments on commit a9354a4

Please sign in to comment.