From a90d98aa1e685ca5af67189f1f4f0cb2317a0473 Mon Sep 17 00:00:00 2001 From: Joe Grandja Date: Thu, 19 Nov 2020 06:28:39 -0500 Subject: [PATCH] Use artifactoryUsername/Password for plugin repositories --- build.gradle | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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/' } } }