Skip to content

Commit

Permalink
Changed property to environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasSchaub committed Jul 5, 2023
1 parent 73032bf commit 7138981
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ publishing {
description = 'Implementation of the ART 2-A fingerprint clustering algorithm in Java.'
url = 'https://github.com/JonasSchaub/ART2a-Clustering-for-Java'

//this way, properties can be added:
//this way, properties can be added:
//properties = [
//myProp: "value",
//"prop.with.dots": "anotherValue"
Expand Down Expand Up @@ -185,8 +185,8 @@ publishing {
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
//uses keys and passwords declared in userhome/.gradle/gradle.properties
username = property("ossrhUsername") as String
password = property("ossrhPassword") as String
username = System.getenv("ossrhUsername") as String
password = System.getenv("ossrhPassword") as String
}
}
}
Expand Down

0 comments on commit 7138981

Please sign in to comment.