Skip to content

Commit

Permalink
Fix uploadArchives
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismair committed May 30, 2020
1 parent 78883a1 commit 81e7088
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 2 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,12 @@ uploadArchives {
mavenDeployer {
beforeDeployment { deployment -> signing.signPom(deployment) }

def repoUser = hasProperty("ossrhUsername") ? ossrhUsername : 'NotSet'
def repoPassword = hasProperty("ossrhPassword") ? ossrhPassword : 'NotSet'

repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: repoUser, password: repoPassword)
authentication(userName: ossrhUsername, password: ossrhPassword)
}

snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: repoUser, password: repoPassword)
authentication(userName: ossrhUsername, password: ossrhPassword)
}

pom.project {
Expand Down
4 changes: 4 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
org.gradle.caching=true

ossrhUsername = undefined
ossrhPassword = undefined

0 comments on commit 81e7088

Please sign in to comment.