diff --git a/TODO.md b/TODO.md index 5768390..bae6b82 100644 --- a/TODO.md +++ b/TODO.md @@ -6,7 +6,7 @@ | MET-002 | Done | Set Gradle project metadata and configure a Java toolchain compatible with the target modern Paper version. | | MET-003 | Done | Configure repositories and compatible PaperMC, WorldEdit, WorldGuard, and other required or optional dependencies; add build plugins such as Shadow only if needed. | | MET-004 | Done | Move or verify plugin.yml under src/main/resources, configure Gradle resource processing, and update its Paper api-version, dependencies, commands, permissions, and required fields. | -| MET-005 | Ready | Add JUnit 5 test infrastructure and keep the default Gradle `test` task server-free. Use an in-memory Paper harness such as MockBukkit for Bukkit/Paper behavior and mocks or test doubles for WorldEdit, WorldGuard, and narrow API boundaries where appropriate. | +| MET-005 | Done | Add JUnit 5 test infrastructure and keep the default Gradle `test` task server-free. Use an in-memory Paper harness such as MockBukkit for Bukkit/Paper behavior and mocks or test doubles for WorldEdit, WorldGuard, and narrow API boundaries where appropriate. | | MET-006 | Ready | Build the initial Gradle project and run its tests; resolve build setup issues before removing the existing Maven build. | | MET-007 | Ready | Update .gitignore for Gradle and remove obsolete Maven and Eclipse project files after the Gradle build succeeds. | | MET-008 | Ready | Analyze Java sources for deprecated or removed Bukkit/Paper APIs and legacy patterns, including logging, event registration, configuration, player lookup, and player-keyed storage. | diff --git a/build.gradle b/build.gradle index 62f324e..f48ebef 100644 --- a/build.gradle +++ b/build.gradle @@ -18,6 +18,9 @@ dependencies { compileOnly 'io.papermc.paper:paper-api:26.2.build.129-stable' compileOnly 'com.sk89q.worldedit:worldedit-bukkit:7.4.5' compileOnly 'com.sk89q.worldguard:worldguard-bukkit:7.0.19' + + testImplementation 'org.junit.jupiter:junit-jupiter:5.13.4' + testImplementation 'org.mockito:mockito-junit-jupiter:5.24.0' } java { @@ -43,6 +46,10 @@ tasks.named('processResources') { } } +tasks.named('test') { + useJUnitPlatform() +} + tasks.named('wrapper') { gradleVersion = '9.8.0' distributionType = Wrapper.DistributionType.BIN