Use artifactoryUsername/Password for plugin repositories

This commit is contained in:
Joe Grandja 2020-11-19 06:28:39 -05:00
parent e440935c14
commit a90d98aa1e

View File

@ -5,7 +5,15 @@ buildscript {
classpath 'io.spring.nohttp:nohttp-gradle:0.0.5.RELEASE'
}
repositories {
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"
}
}
}
maven { url 'https://plugins.gradle.org/m2/' }
}
}