changeset 73:174b4bcfd2f2

fix gradle init script
author smith@nwoca.org
date Fri, 03 Feb 2012 09:57:04 -0500
parents 148d1129fd63
children a622ec40a570
files init.gradle ssdt.default.gradle
diffstat 2 files changed, 25 insertions(+), 1 deletions(-) [+]
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
--- a/ssdt.default.gradle	Thu Feb 02 16:47:00 2012 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-

repositories {
    ivy {
        name "SSDT snapshots"
        url "http://repos.ssdt.nwoca.org/artifactory/libs-snapshots"
        layout 'pattern', {
            artifact "[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
            ivy "[[organisation]/[module]/ivy-[revision].xml"
        }
    }
    
    ivy {
        name "SSDT releases"
        url "http://repos.ssdt.nwoca.org/artifactory/libs-releases"
        layout 'pattern', {
            artifact "[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
            ivy "[[organisation]/[module]/ivy-[revision].xml"
        }
    }
    
    maven {
        name "SSDT Repo"
        url "http://repos.ssdt.nwoca.org/artifactory/ssdt-repo"
    }
    
}
\ No newline at end of file