You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore: modernise build and tests for Java 17 baseline (#42)
Companion to the BanManager Java 17 modernisation sweep.
Build
- Stonecutter 0.7.11 -> 0.8.3 (settings.gradle.kts uses the renamed
shared.version() API instead of vers()).
- Foojay toolchain resolver 0.9.0 -> 1.0.0.
- Add com.vanniktech.maven.publish to buildSrc so libs/sub-projects
can publish consistently with BanManager.
- Set Libs source/target compatibility and TargetJvmVersion attribute
to 17 (matches the Java 17 baseline already in use by other modules).
- Lombok 1.18.36 -> 1.18.38.
- bStats Bukkit/Bungee/Velocity bumped to 3.2.1, Sponge to 3.2.1
(was a mix of 2.2.1 / 3.0.0 / 3.0.2).
- Guava 17.0 -> 33.4.8-jre and dropped the unused
bcpkix-jdk15on shade (only bcprov is referenced by the encoder).
- Append -XX:+UseStringDeduplication to the Gradle JVM args.
Tests
- Migrate the three remaining tests (PlayerPinDataTest,
CommonPlayerDeniedListenerTest, Argon2PasswordEncoderTest) from
JUnit 4 + PowerMock + Mockito 4 to JUnit 5 + Mockito 5
(mockito-junit-jupiter 5.14.2). PowerMock dropped.
- mariaDB4j 2.6.0 -> 3.3.1, awaitility 4.0.1 -> 4.3.0,
jacoco 0.8.11 -> 0.8.12.
- Refresh the forkEvery=1 inline comment to point at the BanManager
common build for full rationale (JDBC drivers and native fixtures
leak across runs).
Verification
- ./gradlew :BanManagerWebEnhancerCommon:test - 22 tests, 0 skipped,
0 failures, 0 errors.
- Sequential ./gradlew build -x test produces every artifact across
Bukkit, Bungee, Velocity, Sponge, and all 4 Fabric variants.
Copy file name to clipboardExpand all lines: common/src/test/java/me/confuser/banmanager/webenhancer/common/listeners/CommonPlayerDeniedListenerTest.java
0 commit comments