From 34000f05908d5df85ce72b196fe2aa1bf28c2004 Mon Sep 17 00:00:00 2001 From: ARIYAMA Keiji Date: Sun, 10 Oct 2021 14:48:10 +0900 Subject: [PATCH] Fix build error. --- build.gradle | 3 +++ 1 file changed, 3 insertions(+) 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}"