Use artifactoryUsername/Password for plugin repositories

This commit is contained in:
Rob Winch 2020-11-16 15:40:31 -06:00
parent ad4ed45cd7
commit 78f0f7bd33
1 changed files with 9 additions and 1 deletions

View File

@ -7,7 +7,15 @@ buildscript {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
} }
repositories { 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/' } maven { url 'https://plugins.gradle.org/m2/' }
} }
} }