build changes
This commit is contained in:
parent
19f513dde2
commit
3635e4e935
|
@ -124,27 +124,14 @@ xjc {
|
||||||
xjcBindingFile = file( 'src/main/xjb/hbm-mapping-bindings.xjb' )
|
xjcBindingFile = file( 'src/main/xjb/hbm-mapping-bindings.xjb' )
|
||||||
xjcExtensions += ['inheritance', 'simplify']
|
xjcExtensions += ['inheritance', 'simplify']
|
||||||
}
|
}
|
||||||
// orm {
|
mapping {
|
||||||
// xsdFile = file( 'src/main/resources/org/hibernate/jpa/orm_2_2.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']
|
xjcExtensions += ['inheritance', 'simplify']
|
||||||
// }
|
}
|
||||||
// mapping {
|
|
||||||
// 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']
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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 )
|
||||||
ext {
|
ext {
|
||||||
|
|
Loading…
Reference in New Issue