Seeking Assurance That Patching gradle-api-6.{...}.jar Is At Least Technically Possible - Somehow
Alan Bateman
Alan.Bateman at oracle.com
Tue Nov 12 11:50:51 UTC 2019
On 12/11/2019 09:19, Plugins wrote:
> :
>
>
> If you can answer a few questions for me please Alan, you could help
> salvage the little sanity I have left after wrestling with this:
>
> 1. What's the correct command to patch javax.xml and jdk.xml.dom with
> Gradle's API JAR?
> 2. If it is actually impossible to patch either of them with Gradle,
> what's your best guess for why that might be?
> 3. How can I _exclude_ javax.xml and jdk.xml.dom from the module graph?
> • I have already tried --limit-modules, but haven't had any luck
>
> In the meantime, I will try to muster up the will to report the issue
> to the Gradle devs.
>
You can't use --patch-module to augment both java.xml and jdk.xml.dom
with the classes/resources from gradle-api-6.0-rc-2.jar as that will
create a split package issue. You might get away with `--limit-modules
java.se` and patching java.xml but it would be really odd to have
classes for Gradle, SLF4J, JodaTime, and more in the java.xml module. I
think the only sane approach is to deconstruct gradle-api-6.0-rc-2.jar
so that the components it contains can be used as automatic modules.
I'm not sure what to say about xml-apis. I assume it ends up in
gradle-api-6.0-rc-2.jar because something depends on it. I can't think
why anything might be depending on this relic in 2019. It might be
useful track down why it is included in the first place.
-Alan
[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=536928
More information about the jigsaw-dev
mailing list