File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ class ArtifactoryGradleSettings extends BuildAdapter implements BuildListener {
21
21
22
22
def void projectsLoaded (Gradle gradle ) {
23
23
Project root = gradle. getRootProject()
24
+ if (' buildSrc' . equals(root. name))
25
+ return
24
26
String artifactoryRoot = ' http://repo.jfrog.org/artifactory'
25
27
root. logger. debug(" Applying Artifactory to project root ${ root.name} " )
26
28
root. allprojects {
@@ -30,14 +32,8 @@ class ArtifactoryGradleSettings extends BuildAdapter implements BuildListener {
30
32
}
31
33
}
32
34
repositories {
35
+ ivyRepo name : ' gradle-ivy' , root : " $artifactoryRoot /gradle-ivy"
33
36
mavenRepo name : ' libs-repo' , urls : " $artifactoryRoot /gradle"
34
- add(new org.apache.ivy.plugins.resolver.IvyRepResolver ()) {
35
- name = ' gradle-ivy'
36
- ivyroot = " $artifactoryRoot /gradle-ivy"
37
- artroot = " $artifactoryRoot /gradle-ivy"
38
- ivypattern = ' [organisation]/[module]/ivy-[revision].xml'
39
- artpattern = ' [organisation]/[module]/[type]s/[artifact]-[revision](-[classifier]).[ext]'
40
- }
41
37
}
42
38
}
43
39
}
You can’t perform that action at this time.
0 commit comments