From 1a65d3d9ca8d3510cfbfd5df1367fdce8cc87e19 Mon Sep 17 00:00:00 2001 From: John Blum Date: Fri, 22 Jan 2021 12:26:54 -0800 Subject: [PATCH] Set auth credentials when present to autheticate with Spring libs-snapshot Repository. --- build.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.gradle b/build.gradle index 97a7177..f202460 100644 --- a/build.gradle +++ b/build.gradle @@ -7,6 +7,15 @@ buildscript { mavenCentral() gradlePluginPortal() maven { url 'https://repo.spring.io/plugins-release' } + maven { + url 'https://repo.spring.io/plugins-snapshot' + if (project.hasProperty('artifactoryUsername')) { + credentials { + username "$artifactoryUsername" + password "$artifactoryPassword" + } + } + } } }