Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/maven-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 1 addition & 3 deletions .github/workflows/module-example-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

### Changed

- 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
Expand Down
19 changes: 3 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,12 @@ A minimal standalone `JavaPlugin` using the [UltiTools External Plugin API](http
<dependency>
<groupId>com.ultikits</groupId>
<artifactId>UltiTools-API</artifactId>
<version>7.0.0-SNAPSHOT</version>
<version>7.0.0</version>
<scope>provided</scope>
</dependency>
```

Until the framework release is available, enable Maven Central snapshots in your project:

```xml
<repositories>
<repository>
<id>central-snapshots</id>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
```

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

Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion module-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
8 changes: 1 addition & 7 deletions module-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,14 @@
<properties>
<java.version>25</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<ultitools.version>7.0.0-SNAPSHOT</ultitools.version>
<ultitools.version>7.0.0</ultitools.version>
</properties>

<repositories>
<repository>
<id>papermc</id>
<url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
<repository>
<id>central-snapshots</id>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>

<dependencies>
Expand Down
8 changes: 1 addition & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,6 @@
<id>papermc</id>
<url>https://repo.papermc.io/repository/maven-public/</url>
</repository>
<repository>
<id>central-snapshots</id>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>

<dependencies>
Expand All @@ -91,7 +85,7 @@
<dependency>
<groupId>com.ultikits</groupId>
<artifactId>UltiTools-API</artifactId>
<version>7.0.0-SNAPSHOT</version>
<version>7.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down