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,26 +124,13 @@ 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' )
// 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']
// }
}
}
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' ) 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']
}
}
} }
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 )