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

This commit is contained in:
John Blum
2021-01-22 14:26:02 -08:00
parent 173164f900
commit fc04538df1

View File

@@ -7,7 +7,15 @@ buildscript {
mavenCentral()
gradlePluginPortal()
maven { url 'https://repo.spring.io/release' }
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"
}
}
}
}
}