jline / jline3

JLine is a Java library for handling console input.
Other
1.49k stars 218 forks source link

Use of FFM without multi-release jar #1105

Closed io7m closed 3 weeks ago

io7m commented 1 month ago

Hello!

I've got a few projects that use jline, and on relatively recent versions, my Enforcer plugin executions are flagging jline as containing bytecode outside of the allowed range:

2024-10-26T15:01:51.7725917Z [INFO] Restricted to JDK 21 yet org.jline:jline:jar:3.27.1:compile contains org/jline/terminal/impl/ffm/CLibrary$termios.class targeted to JDK 22

I'm slightly hesitant to ask you to change your code to satisfy my plugin configuration ( :laughing: ), but we do now have a standard way (META-INF/versions/22) to include code that requires newer JDKs to run. Any chance this code could be moved there?

gnodet commented 3 weeks ago

Please use the small jars or use the JLine bundle with the jdk8 classifier, that one does not contain the FFM provider.