diff --git a/build.gradle b/build.gradle index d974b58..50f4b1b 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,15 @@ buildscript { repositories { mavenCentral() gradlePluginPortal() - maven { url 'https://repo.spring.io/plugins-snapshot' } + maven { + url 'https://repo.spring.io/plugins-snapshot' + if (project.hasProperty('artifactoryUsername')) { + credentials { + username "$artifactoryUsername" + password "$artifactoryPassword" + } + } + } } }