Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
Using username and password from environment.
  • Loading branch information
andrewauclair committed Nov 8, 2023
1 parent 630a7c8 commit 72e5961
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions docking-multi-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,8 @@ publishing {
repositories {
maven {
credentials {
if (project.hasProperty('sonatypeUsername')) {
username = "$sonatypeUsername"
}
if (project.hasProperty('sonatypePassword')) {
password = "$sonatypePassword"
}
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}

url = version.endsWith('SNAPSHOT') ?
Expand Down

0 comments on commit 72e5961

Please sign in to comment.