Skip to content

chore: finish Java 17 bump in libs and use Message.sendTo in PinCommand#41

Merged
confuser merged 1 commit intomasterfrom
chore/finish-java17-and-pin-sendto
Apr 18, 2026
Merged

chore: finish Java 17 bump in libs and use Message.sendTo in PinCommand#41
confuser merged 1 commit intomasterfrom
chore/finish-java17-and-pin-sendto

Conversation

@confuser
Copy link
Copy Markdown
Member

Summary

Two small cleanups salvaged from the now-closed #36 that #40 didn't pick up.

  • buildSrc/src/main/kotlin/LibsConfig.kt — bump the libs module's sourceCompatibility / targetCompatibility and the published TargetJvmVersion.TARGET_JVM_VERSION_ATTRIBUTE from 1.817. chore: drop Sponge7 support, bump to Java 17, extend CI to release/v7 #40 raised the rest of the project's Java baseline to 17 (in CommonConfig.kt) but left the libs module pinned at 1.8, so its published artifact metadata still advertised JVM 8 even though the contents were now compiled by a Java 17 toolchain. This brings them into agreement.
  • common/.../commands/PinCommand.java — replace the two remaining sender.sendMessage(Message.get("sender.error.exception").toString()) calls with Message.get("sender.error.exception").sendTo(sender), matching the style used everywhere else in the file (and the rest of the v8 codebase) so the error is rendered through the MiniMessage pipeline rather than as the raw Component.toString() output.

No behaviour changes beyond those two lines of error rendering and the libs JAR's published metadata.

Test plan

  • ./gradlew :BanManagerWebEnhancerCommon:compileJava — green locally.
  • ./gradlew :BanManagerWebEnhancerLibs:jar runs as part of the above and produces a Java 17 jar without warnings.
  • CI: Java CI build + the 10 E2E suites (no behaviour change expected).

Context

Two small cleanups salvaged from the closed #36 that #40 didn't pick up:

- buildSrc/LibsConfig.kt: bump the libs module's source/target compatibility
  and TARGET_JVM_VERSION attribute from 1.8 to 17, matching the v8 Java 17
  baseline already applied to the rest of the project in #40.
- PinCommand.java: replace the two remaining
  sender.sendMessage(Message.get(...).toString()) calls with
  Message.get(...).sendTo(sender) so error messages render through the
  MiniMessage pipeline like the other pin messages instead of as the raw
  Component.toString() output.
@confuser confuser merged commit 5eb683e into master Apr 18, 2026
12 checks passed
@confuser confuser deleted the chore/finish-java17-and-pin-sendto branch April 18, 2026 14:40
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