Skip to content

Commit

Permalink
Disabled properties because they do not work in GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasSchaub committed Jul 5, 2023
1 parent 6aea8cf commit 5ef433c
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -184,19 +184,12 @@ publishing {
//after publishing, go to https://s01.oss.sonatype.org, log in, close the staged repo, and release it if everything worked out
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
//uses keys and passwords declared in userhome/.gradle/gradle.properties
if (System.getenv("ossrhUsername") != null) {
username = System.getenv("ossrhUsername") as String
} else {
username = property("ossrhUsername") as String
}
//username = (System.getenv("ossrhUsername") ?: property("ossrhUsername")) as String
if (System.getenv("ossrhPassword") != null) {
password = System.getenv("ossrhPassword") as String
} else {
password = property("ossrhPassword") as String
}
//password = (System.getenv("ossrhPassword") ?: property("ossrhPassword")) as String
//uses keys and passwords declared in userhome/.gradle/gradle.properties, works locally
//username = property("ossrhUsername") as String
//password = property("ossrhPassword") as String
//uses environment variables declared in yml file which passes GitHub secrets to it
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
}
Expand Down

0 comments on commit 5ef433c

Please sign in to comment.