Skip to content

Depend on individual JLine3 modules, not the bundle - #2419

Merged
remkop merged 2 commits into
remkop:mainfrom
brett-smith:main
May 23, 2025
Merged

Depend on individual JLine3 modules, not the bundle#2419
remkop merged 2 commits into
remkop:mainfrom
brett-smith:main

Conversation

@brett-smith

Copy link
Copy Markdown
Contributor

Fixes #2418.

  • Removed dependency artifacts org.jline:jline
  • Added dependency artifacts org.jline:jline-reader and org.jline:jline-console (jline-builtins, jline-native, jline-terminal and jline-style are added transitively)
  • Removed org.jline module dependency in module-info.
  • Added org.jline.reader and org.jline.console module dependencies to module-info
  • Updated README.md with JPMS info.

 * Removed dependency artifacts `org.jline:jline`
 * Added dependency artifacts `org.jline:jline-reader` and `org.jline:jline-console` (`jline-builtins`, `jline-native`, `jline-terminal` and `jline-style` are added transitively)
 * Removed `org.jline` module dependency in module-info.
 * Added `org.jline.reader` and  `org.jline.console` module dependneices to module-info
 * Updated README.md with JPMS info.

@remkop remkop left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brett-smith Looks good, thank you!

I may include this in the next bugfix release 4.7.7 rather than waiting for 4.8. Any objections/comments?

Also, did you have a chance to build this and verify that it actually works as intended?

@remkop remkop added theme: shell An issue or change related to interactive (JLine) applications theme: module An issue or change related to JPMS modules labels May 16, 2025
@brett-smith

Copy link
Copy Markdown
Contributor Author

Sure, sooner rather than later helps me out too :)

And yes, I tested this by publishing to my local repository, and using it in a fully modular application with separate jline modules, and the jline progress bar extension too.

@remkop remkop added this to the 4.7.8 milestone May 23, 2025
@remkop
remkop merged commit 4df4bee into remkop:main May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

theme: module An issue or change related to JPMS modules theme: shell An issue or change related to interactive (JLine) applications type: enhancement ✨

Projects

None yet

Development

Successfully merging this pull request may close these issues.

picocli-shell-jline3 cannot be used with JPMS and finely grained jline modules

2 participants