Skip to content

Conversation

@sgammon
Copy link
Member

@sgammon sgammon commented Jun 15, 2024

Ready for review Powered by Pull Request Badge

Summary

Adds static JNI support for jansi and jlinenative, rounding out our current JNI support needs; C code for each library was inlined (and merged, since they happen to duplicate some code). Windows support is stubbed on POSIX systems so that symbols align and are linkable statically.

Otherwise, Windows support was preserved.

I did some extra cleanup in this PR: namely, dropping native libraries from resources that are now present statically. It is tested on Linux AMD64 and macOS M-series.

Changelog

  • feat: terminal package replacing our dependency on jansi
  • fix: polymorphic call in jansi's c layer at ioctl
  • fix: path to native console libs
  • fix: linkage for jline on linux
  • chore: update detekt baselines for graalvm
  • chore: wire up native libs for jansi
  • chore: drop resource libraries which are built-in now

@sgammon sgammon added feature Large PRs or issues with full-blown features module:cli CLI module issues and features native Features relating to native code, or JNA, or JNI, or FFM labels Jun 15, 2024
@sgammon sgammon added this to the Release R6: Alpha 10 milestone Jun 15, 2024
@sgammon sgammon requested a review from a team June 15, 2024 01:07
@sgammon sgammon self-assigned this Jun 15, 2024
@sgammon sgammon mentioned this pull request Jun 15, 2024
- feat: `terminal` package replacing our dependency on `jansi`
- fix: polymorphic call in jansi's c layer at `ioctl`
- fix: path to native console libs
- fix: linkage for jline on linux
- chore: update detekt baselines for `graalvm`
- chore: wire up native libs for `jansi`
- chore: drop resource libraries which are built-in now

Signed-off-by: Sam Gammon <[email protected]>
@sgammon sgammon force-pushed the feat/static-console branch from 7c2d047 to 4686121 Compare June 15, 2024 01:29
@codecov
Copy link

codecov bot commented Jun 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.62%. Comparing base (e6b187c) to head (4686121).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1022   +/-   ##
=======================================
  Coverage   54.62%   54.62%           
=======================================
  Files         320      320           
  Lines       10159    10159           
  Branches     1760     1760           
=======================================
  Hits         5549     5549           
  Misses       4078     4078           
  Partials      532      532           
Flag Coverage Δ
gradle 54.62% <ø> (ø)
jvm 54.62% <ø> (ø)
lib 54.62% <ø> (ø)
plugin 54.62% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e6b187c...4686121. Read the comment docs.

@sgammon sgammon merged commit 1d6d349 into main Jun 15, 2024
@sgammon sgammon deleted the feat/static-console branch June 15, 2024 01:55
This was referenced Jun 18, 2024
@sgammon sgammon mentioned this pull request Mar 11, 2025
64 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Large PRs or issues with full-blown features module:cli CLI module issues and features native Features relating to native code, or JNA, or JNI, or FFM

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants