// Apply the java-library plugin to add support for Java Library
id 'java-library'
id 'org.unbroken-dome.xjc' version '2.0.0'
}
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
jcenter()
}
dependencies {
// This dependency is exported to consumers, that is to say found on their compile classpath.
api 'org.apache.commons:commons-math3:3.6.1'
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
implementation 'com.google.guava:guava:27.0.1-jre'
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
implementation fileTree(dir: 'lib')
implementation("javax.xml.bind:jaxb-api:2.3.0")
}```
```sourceSets {
csft50 {
xjcSchema {
srcDir 'src/main/schema/target'
includes = ['csft50.xsd']
xjcTargetPackage = "csft50"
xjcOptions {
binding {
files('bindings.xml')
}
}
}
}
i have also tried
xjcOptions {
args('-b', 'bindings.xml')
} instead of the above
xjcSchema {
srcDir 'src/main/schema/source'
includes = ['Deviation.xsd']
xjcTargetPackage = "Deviation"
}
compileClasspath += csft50.output
runtimeClasspath += csft50.output
}```
```jar {
from sourceSets.main.output
from sourceSets.csft50.output
}```
This is my code, and then I run jar, but then it says that xjcOptions isnt an argument in or exist in id 'org.unbroken-dome.xjc' version '2.0.0'
And my gradle verison is 7.6
How can I bind the file bindings to csft50 correctly in version 2.0.0 in plugins and with gradle version 7.6?