repositories { mavenCentral() } apply plugin: 'java' dependencies { testCompile 'junit:junit:4.+' testCompile fileTree(dir: '../libs', include: '*.jar') } sourceSets { main { java { srcDirs = [] } } test { compileClasspath += files(['../build/classes/release', '../build/classes/debug']) runtimeClasspath += files(['../build/classes/release', '../build/classes/debug']) java { srcDirs = ['src'] } } } task wrapper(type: Wrapper) { gradleVersion = '1.11' }