diff --git a/build.gradle b/build.gradle index f2573bd..33ab612 100644 --- a/build.gradle +++ b/build.gradle @@ -48,8 +48,10 @@ publishing { def sonatypeUsername = providers.gradleProperty('sonatypeUsername') def sonatypePassword = providers.gradleProperty('sonatypePassword') if (sonatypeUsername.isPresent() && sonatypePassword.isPresent()) { - username = sonatypeUsername.get() - password = sonatypePassword.get() + credentials { + username = sonatypeUsername.get() + password = sonatypePassword.get() + } } } }