Skip to content

Commit 8b71d21

Browse files
committed
Use artifactoryUsername/Password for plugin repositories
1 parent 27f2391 commit 8b71d21

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

build.gradle

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@ buildscript {
88
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
99
}
1010
repositories {
11-
maven { url 'https://repo.spring.io/plugins-snapshot' }
11+
maven {
12+
url = 'https://repo.spring.io/plugins-snapshot'
13+
if (project.hasProperty('artifactoryUsername')) {
14+
credentials {
15+
username "$artifactoryUsername"
16+
password "$artifactoryPassword"
17+
}
18+
}
19+
}
1220
maven { url 'https://plugins.gradle.org/m2/' }
1321
}
1422
}

0 commit comments

Comments
 (0)