Skip to content

Commit 78f0f7b

Browse files
committed
Use artifactoryUsername/Password for plugin repositories
1 parent ad4ed45 commit 78f0f7b

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
@@ -7,7 +7,15 @@ buildscript {
77
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
88
}
99
repositories {
10-
maven { url 'https://repo.spring.io/plugins-snapshot' }
10+
maven {
11+
url = 'https://repo.spring.io/plugins-snapshot'
12+
if (project.hasProperty('artifactoryUsername')) {
13+
credentials {
14+
username "$artifactoryUsername"
15+
password "$artifactoryPassword"
16+
}
17+
}
18+
}
1119
maven { url 'https://plugins.gradle.org/m2/' }
1220
}
1321
}

0 commit comments

Comments
 (0)