Add jmods
The jmods is important for anybody attempting to use the jlink command with a custom --add-modules flag.
@cushon What are your thoughts about this?
Internally we defined a separate java_runtime target that includes the jmods for use-cases where they are needed. They aren't needed for most actions, and omitting them avoids shipping some extra inputs to those actions.
Internally we defined a separate
java_runtimetarget that includes the jmods for use-cases where they are needed. They aren't needed for most actions, and omitting them avoids shipping some extra inputs to those actions.
Would it make sense to have something similar in rules_java (a separate target), or to add this?
Would it make sense to have something similar in rules_java (a separate target), or to add this?
That sounds reasonable.
@Sineaggi Could you please declare a separate java_runtime with the name jdk_with_jmods and add this new filegroup to the sources of that?
Closing in favor of https://github.com/bazelbuild/rules_java/pull/184
@hvadehra sorry this fell off my plate, I checked out https://github.com/bazelbuild/rules_java/pull/184 and it seems like that solves the issue for us. When can we expect a new release of rules_java containing that fix?
When can we expect a new release of rules_java containing that fix
Hopefully soon, I opened https://github.com/bazelbuild/rules_java/issues/186 for now