apply plugin: 'groovy'

repositories {
    mavenCentral()
}

dependencies {
    groovy group: 'org.codehaus.groovy', name: 'groovy-all', version: '1.7.6'
    testCompile group: 'junit', name: 'junit', version: '4.7'
}

// START SNIPPET define-main
sourceSets {
    main {
        groovy {
            srcDir 'src/groovy'
        }
    }
// END SNIPPET define-main
    test {
        groovy {
            srcDir 'test/groovy'
        }
    }
// START SNIPPET define-main
}
// END SNIPPET define-main
