Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property 'contentForWildcard' has redundant after migrating to Gradle 7.4 from 6.8 #50

Open
vivekbdh opened this issue Jul 12, 2023 · 2 comments

Comments

@vivekbdh
Copy link

vivekbdh commented Jul 12, 2023

I'm using the xjcGenerate task in my gradle script to generate required classes. It worked fine until I migrated the gradle version to 7.4 from 6.8.

gradle-xjc-plugin:1.4.0
Java: 11

xjcGenerate {
targetPackage = "nl.xyz.xsd"
source = fileTree('src/main/resources/wsdl')
extraArgs = [ '-wsdl' ]
}

I'm receiving the following error during task execution...

Some problems were found with the configuration of task ':cir:xjcGenerate' (type 'XjcGenerate').
  - In plugin 'org.unbroken-dome.xjc' type 'org.unbrokendome.gradle.plugins.xjc.XjcGenerate' property 'contentForWildcard' has redundant getters: 'getContentForWildcard()' and 'isContentForWildcard()'.

Would anyone be able to help me to resolve this issue?

@vivekbdh
Copy link
Author

vivekbdh commented Jul 13, 2023

@tkrullmann do we have any update on this, please?

@dlmiles
Copy link

dlmiles commented Dec 6, 2023

What is the reason you are still using 1.4.0 ? The latest 1.4.x is 1.4.3 ? Why did you not automatically perform this task before opening this report ?

However I do not think upgrading to 1.4.3 will fix the issue. The migration from 1.4.3 to 2.0.0 appears to have modified this area which I believe is compatible with the Gradle 7.4 you are trying to use.

So the solution is to upgrade to 2.0.0. When you do this you may need migrate your build.gradle* configuration


Please report if this does not fix the issue for you, with details of the error from Gradle 7.4 and gradle-xjc-plugin 2.0.0.

Please report if this fixed your issue (by closing this report, as you appear to be reporting a known matter that upgrading the plugin version will fix). This should have been an automatic thing for you to try, in the same way I expect you needed to upgrade other plugins in your project to be compatible with Gradle 7.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants