Skip to content

Commit 1ef7190

Browse files
committed
make code signing optional in build
1 parent 9c912ab commit 1ef7190

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ uploadArchives {
3232
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
3333

3434
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
35-
authentication(userName: ossrhUsername, password: ossrhPassword)
35+
authentication(userName: hasProperty('ossrhUsername') ? ossrhUsername : '', password: hasProperty('ossrhPassword') ? ossrhPassword : '')
3636
}
3737

3838
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
39-
authentication(userName: ossrhUsername, password: ossrhPassword)
39+
authentication(userName: hasProperty('ossrhUsername') ? ossrhUsername : '', password: hasProperty('ossrhPassword') ? ossrhPassword : '')
4040
}
4141

4242
pom.project {

0 commit comments

Comments
 (0)