diff --git a/build.gradle b/build.gradle index 15a24b5..0a89353 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,15 @@ buildscript { classpath 'io.spring.nohttp:nohttp-gradle:0.0.5.RELEASE' } repositories { - 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" + } + } + } maven { url 'https://plugins.gradle.org/m2/' } } }