Skip to content

建立 MixinWeaver 项目结构 - #1

Merged
QiuYe-QAQ merged 38 commits into
mainfrom
qy/mixinweaver-structure
Nov 23, 2026
Merged

QiuYe-QAQ merged 38 commits into
mainfrom
qy/mixinweaver-structure

Conversation

@QiuYe-QAQ

Copy link
Copy Markdown
Member

目的

将仓库模板整理为 MixinWeaver,为 SpongePowered Mixin 的扩展能力提供清晰的模块边界和可验证的构建入口。

实现细节

  • 将公共接口、核心逻辑、平台接入和测试放入对应的 Gradle 模块。Mixin 对接归入核心模块,开发运行与发行打包归入各平台模块。
  • 接通 NeoForge 的主包、源码包和精简包。发行文件名统一为 MixinWeaver-<平台>--<游戏版本>-<模组版本>.jar,输出到根目录的 build/libs/。
  • 将 Gradle、持续集成路径和错误报告表单迁移到新结构,移除覆盖率配置,保留 GameTest 运行配置。
  • 增加中文在前的双语说明和架构文档,记录 Mixin 生命周期入口和上游源码审查清单。

验证

  • 当前分支使用 Gradle 9.9.1 执行 build :loader:neoforge:slimJar --offline 成功,包含格式检查。
  • 检查了三个发行包的文件名和 Manifest,以及运行包中的 Mixin 配置。
  • NeoForge GameTest 启动时识别到 mixinweaver,随后报告没有注册用例。

平台范围

NeoForge 的目标环境为 Minecraft 1.21.1、Java 21 和 Mixin 0.8.7。Fabric 与 Forge 已建立模块定义。

@github-actions github-actions Bot added 1.21 Tests: Passed Game Tests have passed on this PR labels Nov 22, 2026
@QiuYe-QAQ QiuYe-QAQ added type: refactor Suggestion to refactor a section of code Release: Stale Currently does not fall into any release category or unknown Release: API - X.0.0 Major Breaking Refactors that MUST be in a API-Breaking Release and removed Release: Stale Currently does not fall into any release category or unknown labels Nov 22, 2026
@github-actions github-actions Bot added Tests: Failed Game Tests have failed on this PR and removed Tests: Passed Game Tests have passed on this PR labels Nov 23, 2026
@github-actions github-actions Bot added the main label Nov 23, 2026
@QiuYe-QAQ QiuYe-QAQ removed the 1.21 label Nov 23, 2026
@github-actions github-actions Bot added Tests: Passed Game Tests have passed on this PR and removed Tests: Failed Game Tests have failed on this PR labels Nov 23, 2026
@github-actions github-actions Bot added Tests: Failed Game Tests have failed on this PR and removed Tests: Passed Game Tests have passed on this PR labels Nov 23, 2026
@github-actions github-actions Bot added Tests: Passed Game Tests have passed on this PR and removed Tests: Failed Game Tests have failed on this PR labels Nov 23, 2026
@QiuYe-QAQ
QiuYe-QAQ merged commit 196a516 into main Nov 23, 2026
4 checks passed
@QiuYe-QAQ
QiuYe-QAQ deleted the qy/mixinweaver-structure branch November 23, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

main Release: API - X.0.0 Major Breaking Refactors that MUST be in a API-Breaking Release Tests: Passed Game Tests have passed on this PR type: refactor Suggestion to refactor a section of code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant