Use artifactoryUsername/Password for plugin repositories
This commit is contained in:
parent
e440935c14
commit
a90d98aa1e
10
build.gradle
10
build.gradle
@ -5,7 +5,15 @@ buildscript {
|
|||||||
classpath 'io.spring.nohttp:nohttp-gradle:0.0.5.RELEASE'
|
classpath 'io.spring.nohttp:nohttp-gradle:0.0.5.RELEASE'
|
||||||
}
|
}
|
||||||
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
Block a user