Workaround XJC generation issue
This commit is contained in:
parent
81d749e930
commit
f2446e2ce5
|
@ -129,14 +129,21 @@ xjc {
|
||||||
// xjcBindingFile = file( 'src/main/xjb/mapping-bindings.xjb' )
|
// xjcBindingFile = file( 'src/main/xjb/mapping-bindings.xjb' )
|
||||||
// xjcExtensions += ['inheritance']
|
// xjcExtensions += ['inheritance']
|
||||||
// }
|
// }
|
||||||
mapping {
|
// mapping {
|
||||||
xsdFile = file( 'src/main/resources/org/hibernate/xsd/mapping/mapping-3.1.0.xsd' )
|
// xsdFile = file( 'src/main/resources/org/hibernate/xsd/mapping/mapping-3.1.0.xsd' )
|
||||||
xjcBindingFile = file( 'src/main/xjb/mapping-bindings.xjb' )
|
// xjcBindingFile = file( 'src/main/xjb/mapping-bindings.xjb' )
|
||||||
xjcExtensions += ['inheritance', 'simplify']
|
// xjcExtensions += ['inheritance', 'simplify']
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task mappingXsd (type: org.hibernate.build.gradle.xjc.jakarta.XjcTask) {
|
||||||
|
outputDirectory = project.jaxbTargetDir
|
||||||
|
xsdFile = file( 'src/main/resources/org/hibernate/xsd/mapping/mapping-3.1.0.xsd' )
|
||||||
|
xjcBindingFile = file( 'src/main/xjb/mapping-bindings.xjb' )
|
||||||
|
xjcExtensions = ['inheritance', 'simplify']
|
||||||
|
}
|
||||||
|
tasks.findByPath( sourceSets.findByName( SourceSet.MAIN_SOURCE_SET_NAME ).getCompileJavaTaskName() ).dependsOn mappingXsd
|
||||||
|
|
||||||
task copyBundleResources (type: Copy) {
|
task copyBundleResources (type: Copy) {
|
||||||
inputs.property( "db", db )
|
inputs.property( "db", db )
|
||||||
|
|
Loading…
Reference in New Issue