Open jskillin-idt opened 1 year ago
Reproducer linked.
Hi @jskillin-idt Thanks for the issue and the reproducer!
I'm no Gradle expert, but this appears to me like it is a Gradle issue.
Have you already tried adding the below to your build.gradle
file?
tasks.withType(Jar).all { duplicatesStrategy 'exclude' }
If the above is not the ideal / recommended solution, can you provide some details as to why?
The above solution isn't ideal because it masks other potential collisions. It'd be preferable to fix the Quarkus plugin code so it only includes the source paths once. The linked issue is a request to have Gradle be more intelligent when a plugin tries to add it multiple times.
It'd be preferable to fix the Quarkus plugin code
This is confusing in context of this repo. Sorry. I've filed a lot of Quarkus plugin issues so this got lumped in together in my head. :laughing: I generally mean it'd be preferable to fix the root cause of duplicate source paths being added, even if it's the exact same path. I agree with the issue that Gradle could adopt a more intelligent (idempotent?) behavior here, even optionally, but currently that's not how it behaves.
@jskillin-idt would you please file a new Quarkus issue for this?
@jskillin-idt would you please file a new Quarkus issue for this?
Reproducer: https://github.com/jskillin-idt/quarkiverse-quarkus-cxf-issues-859
A project with at least the following lines triggers a build failure, in which the generated source from the WSDL is attempted to be packaged more than once in the source JAR:
An example failure using the reproducer:
This may be a Quarkus bug, in which case I can pass this along.