apply plugin: "java" sourceCompatibility = 1.6 [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' sourceSets { test { java { srcDir 'src' } } } eclipse.project { name = appName + "-tests" }