HHH-5616 - Switch to Gradle for builds ... working hibernate-core

This commit is contained in:
Steve Ebersole 2010-10-08 20:51:41 -05:00
parent 93bc4272df
commit 737ab3b672
2 changed files with 54 additions and 3 deletions

View File

@ -142,9 +142,9 @@ subprojects { subProject ->
ideaModule {
downloadJavadoc = false
scopes.COMPILE.plus.add( configurations.provided )
outputDir = subProject.sourceSets.main.classesDir
testOutputDir = subProject.sourceSets.test.classesDir
// scopes.COMPILE.plus.add( configurations.provided )
// outputDir = subProject.sourceSets.main.classesDir
// testOutputDir = subProject.sourceSets.test.classesDir
whenConfigured { module ->
module.dependencies*.exported = true
}

View File

@ -0,0 +1,51 @@
apply plugin: 'java'
apply plugin: 'antlr'
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'] )
}
}
}
//ideaModule {
// sourceDirs.add( file( buildDirName + '/generated-src/antlr/main' ) )
// testSourceDirs.addAll( sourceSets.matrix.java.srcDirs )
// testSourceDirs.addAll( sourceSets.matrix.resources.srcDirs )
//}