Use artifactoryUsername/Password for plugin repositories
This commit is contained in:
parent
ec7deca76f
commit
03c2cc846d
10
build.gradle
10
build.gradle
|
@ -6,7 +6,15 @@ buildscript {
|
||||||
classpath "io.freefair.gradle:aspectj-plugin:4.0.2"
|
classpath "io.freefair.gradle:aspectj-plugin:4.0.2"
|
||||||
}
|
}
|
||||||
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/' }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue