build changes

This commit is contained in:
Steve Ebersole 2022-05-25 14:14:48 -05:00
parent 19f513dde2
commit 3635e4e935
1 changed files with 5 additions and 18 deletions

View File

@ -124,27 +124,14 @@ xjc {
xjcBindingFile = file( 'src/main/xjb/hbm-mapping-bindings.xjb' )
xjcExtensions += ['inheritance', 'simplify']
}
// orm {
// xsdFile = file( 'src/main/resources/org/hibernate/jpa/orm_2_2.xsd' )
// xjcBindingFile = file( 'src/main/xjb/mapping-bindings.xjb' )
// xjcExtensions += ['inheritance']
// }
// 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']
// }
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) {
inputs.property( "db", db )
ext {