Skip to content

修复数据提取器规则 YAML 的空 ID 读写并调整 Create 编译依赖 - #462

Merged
QiuYe-QAQ merged 2 commits into
1.21from
qy/fix-extractor-rule-yaml
Nov 22, 2026
Merged

QiuYe-QAQ merged 2 commits into
1.21from
qy/fix-extractor-rule-yaml

Conversation

@QiuYe-QAQ

Copy link
Copy Markdown
Member

What / 目的

修复数据提取器规则 YAML 生成后重读时的空 ID 校验错误,并调整 Create 的编译期依赖解析。

Implementation Details / 实现细节

  • Configuration 3.1.1 会将空的 YAML 字段读成 {},规则编译因此把原本为空的 outputId 当作资源 ID 校验。现在将空的 recordedId 和 outputId 写成 "",并兼容已有文件里的 {}。
  • 将 Create 的 compileOnly 依赖设置为 transitive = false,其相关编译依赖继续由现有的显式声明提供。

How Was This Tested / 测试方式

  • gradlew.bat compileJava --offline 通过。
  • 使用实际配置入口在隔离目录验证了 42 条默认规则的生成和重读、已有文件中的空 ID 恢复,以及规则编译。
  • 未运行完整 GameTest,也未验证早期列式 YAML 的迁移。

@github-actions github-actions Bot added the 1.21 label Nov 22, 2026
@QiuYe-QAQ QiuYe-QAQ added Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. type: bugfix General bug fixes labels Nov 22, 2026
@github-actions github-actions Bot added the Tests: Passed Game Tests have passed on this PR label Nov 22, 2026
@QiuYe-QAQ
QiuYe-QAQ merged commit e21231f into 1.21 Nov 22, 2026
5 of 7 checks passed
@QiuYe-QAQ
QiuYe-QAQ deleted the qy/fix-extractor-rule-yaml branch November 22, 2026 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.21 Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. Tests: Passed Game Tests have passed on this PR type: bugfix General bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant