xjc-gradle-plugin icon indicating copy to clipboard operation
xjc-gradle-plugin copied to clipboard

A Gradle plugin for running the XJC binding compiler to generate JAXB Java source code from XSD schemas

Results 26 xjc-gradle-plugin issues
Sort by recently updated
recently updated
newest added

Hey, I'm having trouble with release 1.8.1, because of inconsistent bindings when there is more than one xjc-task involved (which will be the case, when multiple groups are configured). I...

Hi, i'm missing an option to specify the language code or locale to use when invoking XJC. The current behavior is that environment variable LANG decides which language is selected...

Currently the default xjc task is created and its output is added to the main `SourceSet`. I have a project that only generates code for the test `SourceSet`. Ideally I...

Discards the output of the JCodeModel.build() call when the -quiet flag has been specified. Fixes: #8

As it stands, the XjcPlugin defers adding the java and resource sourceSets until the XjcTask is actually created. This causes some serious problems when trying to use plugins that read...

The README section about which files to generate schemas for is outdated, i.e. it refers to the `xsdFiles`. Instead, this should probably be migrated to the `includes` property.

Downloaded the zip and tred to add plugin from disk. But get: ![2023-07-26_13-26-44](https://github.com/bjornvester/xjc-gradle-plugin/assets/1931769/11404fd0-02da-45ec-bfa0-02442069595d) Any ideas? IntelliJ IDAE 2023.1.4 (Ultimate Edition)

JAXB/XJC generates String rather than `JAXBElement`. How to generate `JAXBElement` ? `` `xjc { options = ["-extension", "-Xnamespace-prefix", "-Xdefault-value"] xsdDir.set(layout.projectDirectory.dir("schemas/core")) includes = ["Test.xsd"] bindingFiles.setFrom(layout.projectDirectory.dir("binding").asFileTree.matching { include("**/*.xjb") }) } `

For a configuration like: ```groovy xjc { xjcVersion.set "3.0.2" useJakarta.set true xsdDir.set file("src/main/resources/xsd") outputJavaDir.set file("src/model/java") groups { register("Thing") { includes.add "Thing.xsd" defaultPackage.set "com.stuff.messages" } register("In") { includes.add "In.xsd" defaultPackage.set "com.stuff.messages.in"...

Run gradle with --configuration-cache failed with: ``` value fixed(class org.gradle.api.internal.file.DefaultFileCollectionFactory$ResolvingFileCollection, file collection)📋 is not assignable to org.gradle.api.NamedDomainObjectProvider ``` This PR fixes this problem.