Skip to content

Commit

Permalink
HHH-5616 - Switch to Gradle for builds .. em
Browse files Browse the repository at this point in the history
  • Loading branch information
sebersole committed Oct 11, 2010
1 parent 239927e commit 8929860
Show file tree
Hide file tree
Showing 488 changed files with 70 additions and 299 deletions.
14 changes: 7 additions & 7 deletions build.gradle
Expand Up @@ -72,18 +72,18 @@ subprojects { subProject ->
group = 'org.hibernate'
version = '4.0.0-SNAPSHOT'

defaultTasks 'build'

// minimize changes, at least for now (gradle uses 'build' by default)..
buildDirName = "target"

if ( 'hibernate-release' == subProject.name ) {
apply plugin : 'base'
}
else {
apply plugin: 'java'
// if ( 'hibernate-release' == subProject.name ) {
// apply plugin : 'base'
// }
// else {
if ( 'hibernate-release' != subProject.name ) {
apply plugin: 'maven' // for install task as well as deploy dependencies

defaultTasks 'build'

configurations {
provided {
// todo : need to make sure these are non-exported
Expand Down
4 changes: 0 additions & 4 deletions entitymanager/.cvsignore

This file was deleted.

208 changes: 0 additions & 208 deletions entitymanager/pom.xml

This file was deleted.

This file was deleted.

33 changes: 0 additions & 33 deletions entitymanager/src/test/resources/hibernate.properties

This file was deleted.

39 changes: 0 additions & 39 deletions entitymanager/src/test/resources/log4j.properties

This file was deleted.

File renamed without changes.
58 changes: 58 additions & 0 deletions hibernate-entitymanager/hibernate-entitymanager.gradle
@@ -0,0 +1,58 @@
apply plugin: 'java'

// todo : there are test failures due to issues with how 'bundles' are handled.
// My guess is using TCCL as the tests try to is not valid in Gradle.


// not needed if we rename the directories to match the sourceSet name
sourceSets {
test {
// resources inherently exclude sources
resources {
setSrcDirs( ['src/test/java','src/test/resources'] )
}
}
}

dependencies {
shrinkwrapVersion = '1.0.0-alpha-6'

compile( project(':hibernate-core') )
compile( libraries.dom4j )
compile( libraries.commons_annotations )
compile( libraries.jpa )
compile( libraries.jta )
compile( libraries.javassist )
testCompile( project(':hibernate-core').sourceSets.test.classes )
testCompile( libraries.junit )
testCompile( libraries.jpa_modelgen )
testCompile( libraries.shrinkwrap_api )
testCompile( libraries.shrinkwrap )
testCompile( libraries.validation )
testCompile( libraries.slf4j_api )
testRuntime( libraries.validator )
}

procTargetDirName = buildDirName + "/generated-src/jpamodelgen"
procTargetDir = dir( procTargetDirName )
compileJava {
configure( options ) {
compilerArgs = [ "-s", "$procTargetDir.dir.absolutePath" ]
}
}
compileJava.dependsOn procTargetDir

bundlesTargetDirName = "$buildDirName/bundles"
bundlesTargetDir = dir( bundlesTargetDirName )
task processBundleResources {
copy {
from 'src/test/bundles'
into bundlesTargetDir.dir
}
}
processBundleResources.dependsOn bundlesTargetDir

//ideaModule {
// testSourceDirs.add( file( procTargetDirName ) )
//}

File renamed without changes.
File renamed without changes.

0 comments on commit 8929860

Please sign in to comment.