diff init.gradle @ 73:174b4bcfd2f2

fix gradle init script
author smith@nwoca.org
date Fri, 03 Feb 2012 09:57:04 -0500
parents
children a622ec40a570
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/init.gradle	Fri Feb 03 09:57:04 2012 -0500
@@ -0,0 +1,25 @@
+
+logger.debug("Applying Artifactory Gradle Settings")
+
+gradle.addListener(new ArtifactoryGradleSettings())
+
+class ArtifactoryGradleSettings extends BuildAdapter implements BuildListener {
+
+    def void projectsEvaluated(Gradle gradle) {
+        Project root = gradle.getRootProject()
+        root.allprojects {
+            println "applying repositories to $it"
+            buildscript {
+                repositories {
+                    mavenRepo name: 'plugins-repo', url: "http://repos.ssdt.nwoca.org/artifactory/gradle-plugins"
+                }
+            }
+
+            repositories {
+                mavenRepo name: 'libs-snapshots', url: 'http://repos.ssdt.nwoca.org/artifactory/libs-snapshots'
+                mavenRepo name: 'libs-releases', url: 'http://repos.ssdt.nwoca.org/artifactory/libs-releases'
+                mavenRepo name: 'ssdt-repo', url: 'http://repos.ssdt.nwoca.org/artifactory/ssdt-repo'
+            }
+        }
+    }
+}
\ No newline at end of file