Skip to content

Build without warnings - #100

Merged
jadamcrain merged 1 commit into
mainfrom
build-warnings
Oct 22, 2026
Merged

jadamcrain merged 1 commit into
mainfrom
build-warnings

Conversation

@jadamcrain

Copy link
Copy Markdown
Member

A clean mvn package printed warnings from the Scala compiler, Surefire and the shade plugin. It now prints none.

  • Scala compiler (test sources only): two matches made exhaustive, in UnsolicitedNetworkTest (UdpDestination) and CollisionAvoidanceTest (ProcedureOutcome.Excluded). EventRulesTest uses ++ instead of Map's deprecated varargs +. What the tests check doesn't change.
  • Surefire: "Corrupted channel by directly writing to native stream". Colors prints through Jansi's AnsiConsole.out(), which writes to the process's native stdout, and Surefire uses that stdout to talk to its forked JVM. Surefire now uses TCP for that instead (SurefireForkNodeFactory, as its FAQ advises). Only the build changes; the CLI prints as before.
  • Shade: the runnable jar leaves out the dependencies' module-info.class files. It's one jar on the class path, not a module. The jar still runs.

Testing: mvn clean test (591 tests pass) and mvn package show no warnings, and the -cli jar runs -revs.

- Three test sources: two matches made exhaustive (UdpDestination,
  ProcedureOutcome.Excluded) and Map's deprecated varargs + replaced
  with ++.
- Surefire talks to its forked JVM over TCP, so the console output
  tests print through Jansi, straight to the native stdout, no longer
  corrupts its channel.
- The runnable jar leaves out the dependencies' module-info.class
  files, which the shade plugin warned about: it's one jar on the class
  path, not a module.
@jadamcrain
jadamcrain added this pull request to the merge queue Oct 22, 2026
Merged via the queue into main with commit 1dbe08c Oct 22, 2026
4 checks passed
@jadamcrain
jadamcrain deleted the build-warnings branch October 22, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant