We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42cdbe9 commit a4e1458Copy full SHA for a4e1458
1 file changed
dd-smoke-tests/springboot-tomcat/application/build.gradle
@@ -28,9 +28,18 @@ ext {
28
serverExtension = 'zip'
29
}
30
31
+def massArtifactUrl = { String upstreamArtifactUrl ->
32
+ def massReadUrl = providers.environmentVariable('MASS_READ_URL').orNull
33
+ if (massReadUrl == null) {
34
+ return "https://${upstreamArtifactUrl}"
35
+ }
36
+ def baseUrl = massReadUrl.endsWith('/') ? massReadUrl : "${massReadUrl}/"
37
+ return "${baseUrl}internal/artifact/${upstreamArtifactUrl}"
38
+}
39
+
40
repositories {
41
ivy {
- url = 'https://dlcdn.apache.org'
42
+ url = massArtifactUrl('dlcdn.apache.org')
43
patternLayout {
44
artifact '/[organisation]/[module]/v[revision]/bin/apache-[organisation]-[revision].[ext]'
45
0 commit comments