diff --git a/build.gradle b/build.gradle index ec8ca86..4409f24 100644 --- a/build.gradle +++ b/build.gradle @@ -65,6 +65,9 @@ publishing { def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/" def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/" url = version.endsWith('-SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl + + def sonatypeUsername = project.getProperties().get('sonatypeUsername') ?: "" + def sonatypePassword = project.getProperties().get('sonatypePassword') ?: "" credentials { username = "${sonatypeUsername}" password = "${sonatypePassword}"