comparison init.gradle @ 73:174b4bcfd2f2

fix gradle init script
author smith@nwoca.org
date Fri, 03 Feb 2012 09:57:04 -0500
parents
children a622ec40a570
comparison
equal deleted inserted replaced
72:148d1129fd63 73:174b4bcfd2f2
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 }