hibernate-orm/hibernate-core/hibernate-core.gradle

46 lines
1.1 KiB
Groovy

apply plugin: 'java'
apply plugin: 'antlr'
apply plugin: org.hibernate.build.gradle.inject.InjectionPlugin
dependencies {
compile( libraries.commons_collections )
compile( libraries.jta )
compile( libraries.dom4j ) {
transitive = false
}
compile( libraries.commons_annotations )
compile( libraries.jpa )
compile( libraries.javassist )
antlr( libraries.antlr )
provided( libraries.ant )
provided( libraries.jacc )
provided( libraries.validation )
testCompile( project(':hibernate-testing') )
testCompile( libraries.validation )
testCompile( libraries.validator ) {
// for test runtime
transitive = true
}
testRuntime( 'jaxen:jaxen:1.1' )
testRuntime( libraries.javassist )
}
manifest.mainAttributes(
'Main-Class': 'org.hibernate.Version'
)
sourceSets {
test {
// resources inherently exclude sources
resources {
setSrcDirs( ['src/test/java','src/test/resources'] )
}
}
}
ideaModule {
sourceDirs.add( file( '$buildDir/generated-src/antlr/main' ) )
}