Use artifactoryUsername/Password for plugin repositories

This commit is contained in:
Joe Grandja 2020-11-19 06:28:39 -05:00
parent f0ecb5b93f
commit 6db194da27

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/' }
}
}