From 8618f1bfaa1216bc03070d3d428b59e6bd0a3d32 Mon Sep 17 00:00:00 2001 From: Ling Bao Date: Sat, 28 Nov 2026 15:39:54 +1100 Subject: [PATCH 1/2] chore: depend on the released UltiTools-API 7.0.0 Use the Maven Central release for both examples and remove framework snapshot setup from CI and documentation. Co-Authored-By: Claude Fable 5.2 --- .github/workflows/maven-ci.yml | 4 +--- .github/workflows/module-example-ci.yml | 4 +--- CHANGELOG.md | 2 ++ README.md | 19 +++---------------- module-example/README.md | 2 +- module-example/pom.xml | 8 +------- pom.xml | 8 +------- 7 files changed, 10 insertions(+), 37 deletions(-) diff --git a/.github/workflows/maven-ci.yml b/.github/workflows/maven-ci.yml index b93408c..699d1c9 100644 --- a/.github/workflows/maven-ci.yml +++ b/.github/workflows/maven-ci.yml @@ -24,6 +24,4 @@ jobs: cache: maven - name: Verify # verify runs the tests, packages the JAR and writes a coverage report without a gate. - # -U: this build depends on UltiTools-API 7.0.0-SNAPSHOT, and the restored Maven cache can hold - # an older snapshot that Maven would otherwise not re-check until the next day. - run: mvn -B -U verify + run: mvn -B verify diff --git a/.github/workflows/module-example-ci.yml b/.github/workflows/module-example-ci.yml index de8937d..73b8da7 100644 --- a/.github/workflows/module-example-ci.yml +++ b/.github/workflows/module-example-ci.yml @@ -25,6 +25,4 @@ jobs: cache-dependency-path: module-example/pom.xml - name: Verify module working-directory: module-example - # -U: this build depends on UltiTools-API 7.0.0-SNAPSHOT, and the restored Maven cache can hold - # an older snapshot that Maven would otherwise not re-check until the next day. - run: mvn -B -ntp -U clean verify + run: mvn -B -ntp clean verify diff --git a/CHANGELOG.md b/CHANGELOG.md index 790c8fe..53072aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,8 @@ Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ### Changed +- The standalone plugin and FieldJournal module examples now depend on the UltiTools-API `7.0.0` release from Maven Central. +- 独立插件与 FieldJournal 模块示例现依赖 Maven Central 上已发布的 UltiTools-API `7.0.0`。 - The standalone external plugin now builds against `UltiTools-API 7.0.0-SNAPSHOT`, Paper 26.3 and JDK 25. It still connects from `JavaPlugin.onEnable()` and disconnects from `onDisable()`. - The command tests now exercise the framework-built Brigadier tree delivered through Paper’s commands lifecycle. In UltiTools’ automatic language mode, sample replies follow each player’s language; existing English wording and operational logs are unchanged. - 独立外部插件现使用 `UltiTools-API 7.0.0-SNAPSHOT`、Paper 26.3 和 JDK 25 构建,仍在 `JavaPlugin.onEnable()` 中连接、在 `onDisable()` 中断开。 diff --git a/README.md b/README.md index 90d6b2b..8658604 100644 --- a/README.md +++ b/README.md @@ -21,25 +21,12 @@ A minimal standalone `JavaPlugin` using the [UltiTools External Plugin API](http com.ultikits UltiTools-API - 7.0.0-SNAPSHOT + 7.0.0 provided ``` -Until the framework release is available, enable Maven Central snapshots in your project: - -```xml - - - central-snapshots - https://central.sonatype.com/repository/maven-snapshots/ - false - true - - -``` - -When UltiTools-API `7.0.0` is released, change the dependency to `7.0.0` and remove the snapshots repository if nothing else uses it. +Maven resolves the released UltiTools-API `7.0.0` from Maven Central. ### 2. Declare UltiTools dependency in plugin.yml @@ -125,7 +112,7 @@ Use `/uext` as an alias. The console or a player with `ultiext.greet` can run th Use JDK 25 and Maven: ```bash -mvn -U clean verify +mvn clean verify ``` Requires UltiTools-API `7.0.0` or later on the server. diff --git a/module-example/README.md b/module-example/README.md index d71de2f..f99423e 100644 --- a/module-example/README.md +++ b/module-example/README.md @@ -4,7 +4,7 @@ An UltiTools **module** for recording exploration sites and keeping a short note ## Build and install -Run `mvn -B -ntp clean verify` in this directory with JDK 25. The `pom.xml` uses UltiTools-API `7.0.0-SNAPSHOT` from Maven Central snapshots and Paper API as `provided` dependencies. The JAR contains the module's descriptor and catalogues, not the server or framework. +Run `mvn -B -ntp clean verify` in this directory with JDK 25. The `pom.xml` uses the released UltiTools-API `7.0.0` from Maven Central and Paper API as `provided` dependencies. The JAR contains the module's descriptor and catalogues, not the server or framework. On a stopped server running UltiTools 7.0, put `target/FieldJournal-1.0.0.jar` in `plugins/UltiTools/plugins/`, not directly in `plugins/`, then start the server. The root `plugin.yml` declares the module API level as the integer `700`. diff --git a/module-example/pom.xml b/module-example/pom.xml index 660d8d3..d3fc3c2 100644 --- a/module-example/pom.xml +++ b/module-example/pom.xml @@ -15,7 +15,7 @@ 25 UTF-8 - 7.0.0-SNAPSHOT + 7.0.0 @@ -23,12 +23,6 @@ papermc https://repo.papermc.io/repository/maven-public/ - - central-snapshots - https://central.sonatype.com/repository/maven-snapshots/ - false - true - diff --git a/pom.xml b/pom.xml index 6e33386..634b583 100644 --- a/pom.xml +++ b/pom.xml @@ -73,12 +73,6 @@ papermc https://repo.papermc.io/repository/maven-public/ - - central-snapshots - https://central.sonatype.com/repository/maven-snapshots/ - false - true - @@ -91,7 +85,7 @@ com.ultikits UltiTools-API - 7.0.0-SNAPSHOT + 7.0.0 provided From 82c35c10072d737a71892db96c7b69fc2806f4fa Mon Sep 17 00:00:00 2001 From: Ling Bao Date: Sat, 28 Nov 2026 15:49:23 +1100 Subject: [PATCH 2/2] docs: fix changelog wording for the released UltiTools-API 7.0.0 The Unreleased section said both that the examples depend on the 7.0.0 release and that the plugin builds against 7.0.0-SNAPSHOT. Keep one statement. Co-Authored-By: Claude Fable 5.2 --- CHANGELOG.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53072aa..a5c5ee9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,11 +14,9 @@ Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ### Changed -- The standalone plugin and FieldJournal module examples now depend on the UltiTools-API `7.0.0` release from Maven Central. -- 独立插件与 FieldJournal 模块示例现依赖 Maven Central 上已发布的 UltiTools-API `7.0.0`。 -- The standalone external plugin now builds against `UltiTools-API 7.0.0-SNAPSHOT`, Paper 26.3 and JDK 25. It still connects from `JavaPlugin.onEnable()` and disconnects from `onDisable()`. +- The standalone external plugin now builds against the released `UltiTools-API 7.0.0`, Paper 26.3 and JDK 25. It still connects from `JavaPlugin.onEnable()` and disconnects from `onDisable()`. - The command tests now exercise the framework-built Brigadier tree delivered through Paper’s commands lifecycle. In UltiTools’ automatic language mode, sample replies follow each player’s language; existing English wording and operational logs are unchanged. -- 独立外部插件现使用 `UltiTools-API 7.0.0-SNAPSHOT`、Paper 26.3 和 JDK 25 构建,仍在 `JavaPlugin.onEnable()` 中连接、在 `onDisable()` 中断开。 +- 独立外部插件现使用已发布的 `UltiTools-API 7.0.0`、Paper 26.3 和 JDK 25 构建,仍在 `JavaPlugin.onEnable()` 中连接、在 `onDisable()` 中断开。 - 命令测试改为执行由框架构造、经 Paper 命令生命周期投递的 Brigadier 命令树。UltiTools 使用自动语言模式时,示例回复跟随各玩家的语言;原有英文措辞和运行日志不变。 ## Previous migration — UltiTools-API 6.3.0 compatibility