Skip to content

Commit

Permalink
build: Fixed signing
Browse files Browse the repository at this point in the history
  • Loading branch information
lilmayu committed May 15, 2024
1 parent 58e8d30 commit fb367b9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ publishing {
repositories {
maven {
credentials {
username = "$ossrhUsername"
password = "$ossrhPassword"
username = project.properties['ossrhUsername'] ?: System.getenv('ossrhUsername')
password = project.properties['ossrhPassword'] ?: System.getenv('ossrhPassword')
}

url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
Expand All @@ -114,6 +114,9 @@ publishing {
}

signing {
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")
useInMemoryPgpKeys(signingKey, signingPassword)
sign publishing.publications.shadow
}

Expand All @@ -122,8 +125,8 @@ nexusPublishing {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
username = "$ossrhUsername"
password = "$ossrhPassword"
username = project.properties['ossrhUsername'] ?: System.getenv('ossrhUsername')
password = project.properties['ossrhPassword'] ?: System.getenv('ossrhPassword')
}
}
}
Expand Down

0 comments on commit fb367b9

Please sign in to comment.