Skip to content

Commit

Permalink
MavLibrary/build.gradle: automate OSSRH deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Feb 12, 2021
1 parent 6bc9611 commit 8ebc72b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions MavLibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@ publishing {
version project.ext.version
}
}
repositories {
maven {
credentials {
username = project.hasProperty('ossrhUsername') ? ossrhUsername : 'Unknown user'
password = project.hasProperty('ossrhPassword') ? ossrhPassword : 'Unknown password'
}
name = 'OSSRH'
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
}
}
}

signing {
Expand Down

0 comments on commit 8ebc72b

Please sign in to comment.