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 4e66588583
commit 1a65d3d9ca

View File

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