apply plugin: 'java' apply plugin: 'eclipse' archivesBaseName = "$rootProject.archivesBaseName-$project.archivesBaseName" configurations.compile.transitive = true configurations.testCompile.transitive = true // no need to use the resource dir sourceSets.main.resources.srcDirs 'src/main/java' sourceSets.test.resources.srcDirs 'src/test/java' dependencies { compile('org.testng:testng:6.1.1') { transitive = false } compile('log4j:log4j:1.2.16') { transitive = false } } eclipseClasspath { defaultOutputDir = file('build/eclipse-build') }