File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
buildSrc/src/main/groovy/io/spring/gradle/convention Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -21,14 +21,18 @@ import org.gradle.api.publish.maven.plugins.MavenPublishPlugin
21
21
22
22
class ArtifactoryPlugin implements Plugin<Project > {
23
23
24
+ private static final String ARTIFACTORY_URL_NAME = " ARTIFACTORY_URL"
25
+
26
+ private static final String DEFAULT_ARTIFACTORY_URL = " https://repo.spring.io"
27
+
24
28
@Override
25
29
void apply (Project project ) {
26
30
project. plugins. apply(' com.jfrog.artifactory' )
27
31
String name = Utils . getProjectName(project);
28
32
boolean isSnapshot = Utils . isSnapshot(project);
29
33
boolean isMilestone = Utils . isMilestone(project);
30
34
project. artifactory {
31
- contextUrl = ' https://repo.spring.io '
35
+ contextUrl = System . getenv() . getOrDefault( ARTIFACTORY_URL_NAME , DEFAULT_ARTIFACTORY_URL )
32
36
publish {
33
37
repository {
34
38
repoKey = isSnapshot ? ' libs-snapshot-local' : isMilestone ? ' libs-milestone-local' : ' libs-release-local'
You can’t perform that action at this time.
0 commit comments