apply plugin: 'scala'

repositories {
    mavenCentral()
}

dependencies {
    scalaTools 'org.scala-lang:scala-compiler:2.8.1'
    scalaTools 'org.scala-lang:scala-library:2.8.1'

    compile 'org.scala-lang:scala-library:2.8.1'
    testCompile group: 'junit', name: 'junit', version: '4.7'
}

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