# HG changeset patch # User smith@nwoca.org # Date 1328281024 18000 # Node ID 174b4bcfd2f24e42bffc40f4a69307d8d46f0239 # Parent 148d1129fd63d76b9f7f50d1d88c5804bf8ff95f fix gradle init script diff -r 148d1129fd63 -r 174b4bcfd2f2 init.gradle --- /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 diff -r 148d1129fd63 -r 174b4bcfd2f2 ssdt.default.gradle --- 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