Skip to content

Commit 3d5f5c6

Browse files
authored
add artifactory to build.gradle.
1 parent 3f2fa94 commit 3d5f5c6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

build.gradle

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,13 @@ test {
7676
repositories {
7777
mavenCentral()
7878
mavenLocal()
79-
}
79+
maven {
80+
def artifactoryUrl = System.getenv("ARTIFACTORY_URL") ?: System.getProperty("artifactory_contextUrl")
81+
println("Using Artifactory URL in build.gradle: ${artifactoryUrl}/ab2d-main")
82+
url = "${artifactoryUrl}/ab2d-main"
83+
credentials {
84+
username = System.getenv("ARTIFACTORY_USER") ?: System.getProperty("username")
85+
password = System.getenv("ARTIFACTORY_PASSWORD") ?: System.getProperty("password")
86+
}
87+
}
88+
}

0 commit comments

Comments
 (0)