Closed remkop closed 3 years ago
@remkop do you embed Jansi somehow ? The path to the native libraries in the jar has changed between 1.x and 2.x, so if you do anything fancy with the native libraries in Jansi, it may have been broken.
The problem disappeared when I upgraded to Jansi 2.1.0, so that's good. Also indicates it wasn't anything in picocli. :-)
I'm happy to close this ticket.
Since this issue pops up searching "gradle exception jansi" due to poor packaging (as in Debian sid with bug 921993) or a protective system environment (as in GRADLE-3573), I found that isolating the consuming application with nohup
in Linux or using the application-specific option (gradle --console=plain
) avoids using jansi.
When I upgrade the picocli dependency on Jansi from 1.18 to 2.0.1, I see the following error on my Travis CI server:
For example, in this Java 8 build, I see this in the build log:
I see identical errors in the picocli build log for other JDK versions (9-15).
The line causing the error in build.gradle is where the test dependencies are declared:
Any idea what could be causing this?