Skip to content

Commit 05c0176

Browse files
committed
allprojects uses artifactoryUsername/Password
1 parent 03c2cc8 commit 05c0176

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

build.gradle

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,19 @@ subprojects {
4343
options.encoding = "UTF-8"
4444
}
4545
}
46+
47+
if (project.hasProperty('artifactoryUsername') {
48+
allprojects { project ->
49+
project.repositories { repos ->
50+
all { repo ->
51+
if (!repo.url.toString().startsWith("https://repo.spring.io/")) {
52+
return;
53+
}
54+
repo.credentials {
55+
username = artifactoryUsername
56+
password = artifactoryPassword
57+
}
58+
}
59+
}
60+
}
61+
}

0 commit comments

Comments
 (0)