Skip to content

Commit 03c2cc8

Browse files
committed
Use artifactoryUsername/Password for plugin repositories
1 parent ec7deca commit 03c2cc8

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

0 commit comments

Comments
 (0)