view 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 source

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'
            }
        }
    }
}