@@ -6,7 +6,8 @@ plugins {
66 id ' application'
77 id ' org.openjfx.javafxplugin' version ' 0.1.0'
88 id ' org.beryx.runtime' version ' 1.13.1'
9- id ' org.unbroken-dome.xjc' version ' 2.0.0'
9+ // id 'org.unbroken-dome.xjc' version '2.0.0'
10+ id ' com.github.bjornvester.xjc' version " 1.8.1" // https://github.com/bjornvester/xjc-gradle-plugin
1011}
1112
1213dependencies {
@@ -28,9 +29,11 @@ dependencies {
2829 // implementation 'com.lowagie:itext:2.1.7'
2930
3031 // JAXB and XML Diff
31- implementation ' org.xmlunit:xmlunit-core:2.8.1'
32- implementation ' jakarta.xml.bind:jakarta.xml.bind-api:2.3.3'
33- implementation ' org.glassfish.jaxb:jaxb-runtime:2.3.3'
32+ // Note: XML Unit 2.8+ contains all necessary JAXB/Jakarta dependencies
33+ // see https://github.com/xmlunit/xmlunit/releases/tag/v2.8.0
34+ implementation ' org.xmlunit:xmlunit-core:2.9.1'
35+ implementation ' jakarta.xml.bind:jakarta.xml.bind-api:4.0.2' // javax.xml.bind.annotation
36+ implementation ' org.glassfish.jaxb:jaxb-runtime:4.0.5'
3437 implementation ' org.junit.jupiter:junit-jupiter:5.10.2'
3538
3639 // test dependencies
5457
5558// org.openjfx.javafxplugin 0.1.0+ issues
5659// see https://github.com/openjfx/javafx-gradle-plugin/pull/154
57-
5860// e.g., "copy" configuration from the runtimeClasspath over to xjcCatalogResolution
59- configurations. xjcCatalogResolution {
61+ System . out. println (" XXXXXXX: " + configurations);
62+ /* configurations.xjcCatalogResolution {
6063 def rtCpAttributes = configurations.runtimeClasspath.attributes
6164 rtCpAttributes.keySet().each { key ->
6265 attributes.attribute(key, rtCpAttributes.getAttribute(key))
@@ -67,8 +70,7 @@ configurations.testXjcCatalogResolution {
6770 rtCpAttributes.keySet().each { key ->
6871 attributes.attribute(key, rtCpAttributes.getAttribute(key))
6972 }
70- }
71-
73+ }*/
7274// e.g., configure manually
7375/* configurations.xjcCatalogResolution {
7476 attributes {
@@ -84,7 +86,7 @@ javafx {
8486}
8587
8688xjc {
87- // srcDirName = ' src/main/resources'
89+ xsdDir . set(layout . projectDirectory . dir( " src/main/schema " )) // by default src/main/resource
8890}
8991
9092version = ' 24.04.24'
0 commit comments