Set auth credentials when present to autheticate with Spring libs-snapshot Repository.

This commit is contained in:
John Blum
2021-01-22 12:26:54 -08:00
parent 5bce577b06
commit b72431c6ae

View File

@@ -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"
}
}
}
}
}