2010-10-08 21:51:41 -04:00
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'antlr'
|
|
|
|
|
2010-10-08 21:54:35 -04:00
|
|
|
// todo : we need to jar up hibernate-testing.jar from here
|
|
|
|
|
2010-10-08 21:51:41 -04:00
|
|
|
dependencies {
|
|
|
|
compile( libraries.commons_collections )
|
|
|
|
compile( libraries.jta )
|
|
|
|
compile( libraries.dom4j ) {
|
|
|
|
transitive = false
|
|
|
|
}
|
|
|
|
compile( libraries.commons_annotations )
|
|
|
|
compile( libraries.jpa )
|
|
|
|
antlr( libraries.antlr )
|
|
|
|
provided( libraries.javassist )
|
|
|
|
provided( libraries.cglib ) {
|
|
|
|
transitive = true
|
|
|
|
}
|
|
|
|
provided( libraries.ant )
|
|
|
|
provided( libraries.jacc )
|
|
|
|
provided( libraries.validation )
|
|
|
|
testCompile( libraries.validation )
|
|
|
|
testCompile( libraries.validator ) {
|
|
|
|
// for test runtime
|
|
|
|
transitive = true
|
|
|
|
}
|
|
|
|
testRuntime( 'jaxen:jaxen:1.1' )
|
|
|
|
testRuntime( libraries.javassist )
|
|
|
|
testRuntime( libraries.cglib ) {
|
|
|
|
transitive = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
manifest.mainAttributes(
|
|
|
|
'Main-Class': 'org.hibernate.Version'
|
|
|
|
)
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
test {
|
|
|
|
// resources inherently exclude sources
|
|
|
|
resources {
|
|
|
|
setSrcDirs( ['src/test/java','src/test/resources'] )
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2010-10-10 16:06:06 -04:00
|
|
|
ideaModule {
|
2010-10-11 08:47:31 -04:00
|
|
|
sourceDirs.add( file( '$buildDir/generated-src/antlr/main' ) )
|
2010-10-10 16:06:06 -04:00
|
|
|
}
|
|
|
|
|
2010-10-10 09:17:52 -04:00
|
|
|
// http://jira.codehaus.org/browse/GRADLE-1158
|
|
|
|
test.testReport = false
|