73
|
1
|
|
2 logger.debug("Applying Artifactory Gradle Settings")
|
|
3
|
|
4 gradle.addListener(new ArtifactoryGradleSettings())
|
|
5
|
|
6 class ArtifactoryGradleSettings extends BuildAdapter implements BuildListener {
|
|
7
|
|
8 def void projectsEvaluated(Gradle gradle) {
|
|
9 Project root = gradle.getRootProject()
|
|
10 root.allprojects {
|
|
11 println "applying repositories to $it"
|
|
12 buildscript {
|
|
13 repositories {
|
|
14 mavenRepo name: 'plugins-repo', url: "http://repos.ssdt.nwoca.org/artifactory/gradle-plugins"
|
|
15 }
|
|
16 }
|
|
17
|
|
18 repositories {
|
|
19 mavenRepo name: 'libs-snapshots', url: 'http://repos.ssdt.nwoca.org/artifactory/libs-snapshots'
|
|
20 mavenRepo name: 'libs-releases', url: 'http://repos.ssdt.nwoca.org/artifactory/libs-releases'
|
|
21 mavenRepo name: 'ssdt-repo', url: 'http://repos.ssdt.nwoca.org/artifactory/ssdt-repo'
|
|
22 }
|
|
23 }
|
|
24 }
|
|
25 } |