From 03c2cc846d5dad2b1c666193ccc4aecc84fa5311 Mon Sep 17 00:00:00 2001 From: Rob Winch Date: Mon, 16 Nov 2020 15:40:31 -0600 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 186a716278..98f7881dd2 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,15 @@ buildscript { classpath "io.freefair.gradle:aspectj-plugin:4.0.2" } 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/' } } }