HHH-5714 Upgraded metamodelgen dependency
The new version allows now also to use the -s option for generating the sources into a seprate directory.
This commit is contained in:
parent
ba040a3378
commit
c0352429db
|
@ -70,7 +70,7 @@ libraries = [
|
||||||
// testing
|
// testing
|
||||||
junit: 'junit:junit:3.8.2',
|
junit: 'junit:junit:3.8.2',
|
||||||
testng: 'org.testng:testng:5.8:jdk15',
|
testng: 'org.testng:testng:5.8:jdk15',
|
||||||
jpa_modelgen: 'org.hibernate:hibernate-jpamodelgen:1.1.0.CR1',
|
jpa_modelgen: 'org.hibernate:hibernate-jpamodelgen:1.1.0.Final',
|
||||||
shrinkwrap_api: 'org.jboss.shrinkwrap:shrinkwrap-api:1.0.0-alpha-6',
|
shrinkwrap_api: 'org.jboss.shrinkwrap:shrinkwrap-api:1.0.0-alpha-6',
|
||||||
shrinkwrap: 'org.jboss.shrinkwrap:shrinkwrap-impl-base:1.0.0-alpha-6'
|
shrinkwrap: 'org.jboss.shrinkwrap:shrinkwrap-impl-base:1.0.0-alpha-6'
|
||||||
]
|
]
|
||||||
|
|
|
@ -21,6 +21,15 @@ dependencies {
|
||||||
testRuntime( libraries.validator )
|
testRuntime( libraries.validator )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
procTargetDirName = buildDirName + "/generated-src/jpamodelgen"
|
||||||
|
procTargetDir = dir( procTargetDirName )
|
||||||
|
compileTestJava {
|
||||||
|
configure( options ) {
|
||||||
|
compilerArgs = [ "-s", "$procTargetDir.dir.absolutePath" ]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
compileTestJava.dependsOn procTargetDir
|
||||||
|
|
||||||
bundlesTargetDirName = "$buildDirName/bundles"
|
bundlesTargetDirName = "$buildDirName/bundles"
|
||||||
bundlesTargetDir = dir( bundlesTargetDirName )
|
bundlesTargetDir = dir( bundlesTargetDirName )
|
||||||
task copyBundleResources (type: Copy) {
|
task copyBundleResources (type: Copy) {
|
||||||
|
@ -40,6 +49,11 @@ copyBundleResources.dependsOn bundlesTargetDir
|
||||||
// make sure that the bundles for the packaged test (PackagingTestCase) are copied as well
|
// make sure that the bundles for the packaged test (PackagingTestCase) are copied as well
|
||||||
processTestResources.dependsOn copyBundleResources
|
processTestResources.dependsOn copyBundleResources
|
||||||
|
|
||||||
|
ideaModule {
|
||||||
|
testSourceDirs.add( file( procTargetDirName ) )
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue