Declare Artifactory credentials if 'artifactoryUsername' proeprty is present.

This commit is contained in:
John Blum
2021-04-14 11:26:44 -07:00
parent bb909bead1
commit c3d25b87df

View File

@@ -32,6 +32,22 @@ allprojects {
}
}
if (project.hasProperty('artifactoryUsername')) {
allprojects { project ->
project.repositories { repos ->
all { repo ->
if (!repo.url.toString().startsWith("https://repo.spring.io/")) {
return;
}
repo.credentials {
username = artifactoryUsername
password = artifactoryPassword
}
}
}
}
}
description = 'Spring Session for Apache Geode'
ext['groovy.version'] = "$groovyVersion"