apply plugin: 'java' sourceSets { main.java.srcDirs = ['src'] main.resources.srcDirs = ['src'] test.java.srcDirs = ['tests/java'] test.resources.srcDirs = ['tests/resources'] }