Skip to content

Commit

Permalink
SONATYPE_USERNAME and SONATYPE_PASSWORD from env
Browse files Browse the repository at this point in the history
  • Loading branch information
bgalek committed Oct 12, 2021
1 parent e995fbc commit 4c8890a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ publishing {
repositories {
maven {
credentials {
username = project.properties.get("SONATYPE_USERNAME") as String?
password = project.properties.get("SONATYPE_PASSWORD") as String?
username = System.getenv("SONATYPE_USERNAME")
password = System.getenv("SONATYPE_PASSWORD")
}
val releasesRepoUrl = uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
val snapshotsRepoUrl = uri("https://oss.sonatype.org/content/repositories/snapshots/")
Expand Down

0 comments on commit 4c8890a

Please sign in to comment.