diff options
author | Thomas <> | 2021-12-15 08:42:11 +0100 |
---|---|---|
committer | Thomas <> | 2021-12-15 08:42:11 +0100 |
commit | 549e433c60f30a49fd7164967d3afe1a4998930b (patch) | |
tree | 105e698da63fa5e67bd3ff11bdd22d7cf589db5b /moaSig/moa-asic/build.gradle | |
parent | 48de4fce4f95610d877aaf0f4fbec581513f5c3c (diff) | |
download | moa-sig-549e433c60f30a49fd7164967d3afe1a4998930b.tar.gz moa-sig-549e433c60f30a49fd7164967d3afe1a4998930b.tar.bz2 moa-sig-549e433c60f30a49fd7164967d3afe1a4998930b.zip |
switch to JAXB API v3.0
Diffstat (limited to 'moaSig/moa-asic/build.gradle')
-rw-r--r-- | moaSig/moa-asic/build.gradle | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/moaSig/moa-asic/build.gradle b/moaSig/moa-asic/build.gradle index 6372373..c228d3d 100644 --- a/moaSig/moa-asic/build.gradle +++ b/moaSig/moa-asic/build.gradle @@ -1,3 +1,7 @@ +//plugins { +// id 'com.intershop.gradle.jaxb' version '5.1.0' +//} + apply plugin: 'java-library-distribution' distributions { @@ -8,16 +12,18 @@ distributions { configurations { jaxb + } dependencies { jaxb group: 'com.sun.xml.bind', name: 'jaxb-xjc', version: '3.0.2' + jaxb group: 'org.glassfish.jaxb', name: 'jaxb-runtime', version: '3.0.2' implementation project(':common') implementation project(':moa-sig-lib') - implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.15.0' - api group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1' - api group: 'javax.xml.ws', name: 'jaxws-api', version: '2.3.1' + implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.16.0' + api 'jakarta.xml.bind:jakarta.xml.bind-api:3.0.1' + api 'jakarta.xml.ws:jakarta.xml.ws-api:3.0.1' } @@ -29,6 +35,21 @@ sourceSets { } } +/* +jaxb { + // generate java code from schema + javaGen { + //generates a 'project' schema file from existing java code + posConfig { + schema = file('src/main/resources/schemas/asic.xsd') + packageName = 'at.gv.egiz.asic' + outputDir = file( "${projectDir}/src/generated/java" ) + } + } + +} +*/ + task jaxb () { // output directory def jaxbTargetDir = file( "${projectDir}/src/generated/java" ) @@ -47,9 +68,10 @@ task jaxb () { package: 'at.gv.egiz.asic', schema: 'src/main/resources/schemas/asic.xsd' ) - } + } } + task releases(type: Copy) { //from jar.outputs from distZip.outputs |