You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The recent addition of module-info.java, while welcome has made it impossible to use correctly in a fully modular application with JLine's finely grained jars.
For example, I am currently using jline-terminal, jline-console, jline-reader and jline-style. This means I have something like this in my apps module-info,
I now wish to add progressbar to this, but cannot be it itself has requires org.jline which is only available in the bundled jline.
The 2 workarounds I have found so far are ..
Only use the bundled jline. This is a shame and kinda defeats the point of modules!
Use the previous version of progressbar without the module-info so it acts as an automatic module. Again this is not really a solution.
I understand this is not really the fault of progressbar. It is just the way things are because of how JPMS works, and the fact that JLine even offers this choice.
However, I believe progressbar should change to accommodate this. I think it would make more sense if progressbar itself expects you to be using the finely grained JLine modules by default, and if you want to use the bundle, you have to do so yourself and may only do so in a non-modular application.
The other alternative is for progressbar to provided two differrent versions of the artifact. One that depends on (and has a module-info for) the JLine bundle, and another that depends on (and has module-info requires for) all the used finely grained modules. Other projects such as JNA do this.
The text was updated successfully, but these errors were encountered:
The recent addition of
module-info.java
, while welcome has made it impossible to use correctly in a fully modular application with JLine's finely grained jars.For example, I am currently using
jline-terminal
,jline-console
,jline-reader
andjline-style
. This means I have something like this in my apps module-info,I now wish to add progressbar to this, but cannot be it itself has
requires org.jline
which is only available in the bundled jline.The 2 workarounds I have found so far are ..
I understand this is not really the fault of progressbar. It is just the way things are because of how JPMS works, and the fact that JLine even offers this choice.
However, I believe progressbar should change to accommodate this. I think it would make more sense if progressbar itself expects you to be using the finely grained JLine modules by default, and if you want to use the bundle, you have to do so yourself and may only do so in a non-modular application.
The other alternative is for progressbar to provided two differrent versions of the artifact. One that depends on (and has a module-info for) the JLine bundle, and another that depends on (and has module-info requires for) all the used finely grained modules. Other projects such as JNA do this.
The text was updated successfully, but these errors were encountered: