apply plugin: 'java' dependencies { compile( project( ':hibernate-core' ) ) compile( project( ':hibernate-entitymanager' ) ) compile( libraries.commons_annotations ) compile( [group: 'org.hibernate', name: 'hibernate-tools', version: '3.2.0.ga'] ) { trasitive = false } compile( libraries.dom4j ) { trasitive = false } compile( libraries.ant ) testCompile( libraries.junit ) testCompile( project(':hibernate-testing') ) testCompile( libraries.jpa ) testRuntime( libraries.h2 ) testRuntime( libraries.javassist ) } sourceSets { test { // resources inherently exclude sources resources { setSrcDirs( ['src/test/java','src/test/resources'] ) } } }