annotate init.gradle @ 73:174b4bcfd2f2

fix gradle init script
author smith@nwoca.org
date Fri, 03 Feb 2012 09:57:04 -0500
parents
children a622ec40a570
rev   line source
73
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
1
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
2 logger.debug("Applying Artifactory Gradle Settings")
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
3
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
4 gradle.addListener(new ArtifactoryGradleSettings())
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
5
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
6 class ArtifactoryGradleSettings extends BuildAdapter implements BuildListener {
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
7
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
8 def void projectsEvaluated(Gradle gradle) {
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
9 Project root = gradle.getRootProject()
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
10 root.allprojects {
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
11 println "applying repositories to $it"
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
12 buildscript {
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
13 repositories {
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
14 mavenRepo name: 'plugins-repo', url: "http://repos.ssdt.nwoca.org/artifactory/gradle-plugins"
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
15 }
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
16 }
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
17
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
18 repositories {
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
19 mavenRepo name: 'libs-snapshots', url: 'http://repos.ssdt.nwoca.org/artifactory/libs-snapshots'
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
20 mavenRepo name: 'libs-releases', url: 'http://repos.ssdt.nwoca.org/artifactory/libs-releases'
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
21 mavenRepo name: 'ssdt-repo', url: 'http://repos.ssdt.nwoca.org/artifactory/ssdt-repo'
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
22 }
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
23 }
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
24 }
174b4bcfd2f2 fix gradle init script
smith@nwoca.org
parents:
diff changeset
25 }