diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index 5d8ae14f8..585e9ee30 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -9,7 +9,8 @@
## Compatibility
- Minecraft: `1.20.1`
-- Forge: latest promotion for Minecraft `1.20.1`
+- Forge: `1.20.1-47.4.0`
+- Fabric Loader: `0.16.9`
- CraftBukkit package: `v1_20_R1`
- Java: `17`
@@ -19,8 +20,8 @@
-- [ ] `./gradlew check assembleForgeMod verifyForgeModDistribution`
-- [ ] `./gradlew smokeServer`
+- [ ] `./gradlew build`
+- [ ] Started the affected loader JAR in a dedicated server (when runtime behavior changed)
- [ ] Added or updated a regression test for new observable behavior
- [ ] Updated affected documentation
- [ ] Verified no credentials, server state, logs, caches, or generated build outputs are included
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f9b52f62a..6b1d8bd9d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -15,10 +15,10 @@ concurrency:
cancel-in-progress: true
jobs:
- linux:
- name: Linux build and artifact verification
+ build:
+ name: Build loader JARs
runs-on: ubuntu-latest
- timeout-minutes: 30
+ timeout-minutes: 45
steps:
- name: Check out repository
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
@@ -29,91 +29,21 @@ jobs:
java-version: "17"
- name: Set up Gradle
uses: gradle/actions/setup-gradle@48b5f213c81028ace310571dc5ec0fbbca0b2947
- - name: Build and verify the Forge mod
- timeout-minutes: 20
- run: ./gradlew check assembleForgeMod verifyForgeModDistribution
- - name: Upload verification artifacts
+ - name: Build
+ run: ./gradlew build
+ - name: Stage JARs and generate SHA-256 checksums
+ run: |
+ mkdir -p build/libs
+ find fabric/build/libs forge/build/libs -maxdepth 1 -type f -name 'luminara-*.jar' \
+ ! -name '*-sources.jar' ! -name '*-javadoc.jar' -exec cp {} build/libs/ \;
+ cd build/libs
+ sha256sum *.jar > SHA256SUMS
+ - name: Upload JARs and checksums
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
- name: luminara-verification-${{ github.sha }}
+ name: luminara-${{ github.sha }}
retention-days: 7
if-no-files-found: error
path: |
- build/distributions/luminara-*.jar
- build/distributions/luminara-*.jar.sha256
- **/build/test-results/**
- **/build/reports/tests/**
-
- smoke:
- name: Native Forge smoke test
- runs-on: ubuntu-latest
- timeout-minutes: 30
- steps:
- - name: Check out repository
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
- - name: Set up Java 17
- uses: actions/setup-java@d7793b545071e98d581d3bf084a51c3213318a07
- with:
- distribution: temurin
- java-version: "17"
- - name: Set up Gradle
- uses: gradle/actions/setup-gradle@48b5f213c81028ace310571dc5ec0fbbca0b2947
- - name: Run the native Forge smoke test
- timeout-minutes: 25
- run: ./gradlew smokeServer
- - name: Upload smoke logs
- if: always()
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
- with:
- name: luminara-smoke-${{ github.sha }}
- retention-days: 7
- if-no-files-found: warn
- path: |
- build/smoke-server/smoke-server.log
- build/smoke-server/forge-installer.log
-
- windows:
- name: Windows assembly and mod JAR contract
- runs-on: windows-latest
- timeout-minutes: 20
- steps:
- - name: Check out repository
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
- - name: Set up Java 17
- uses: actions/setup-java@d7793b545071e98d581d3bf084a51c3213318a07
- with:
- distribution: temurin
- java-version: "17"
- - name: Set up Gradle
- uses: gradle/actions/setup-gradle@48b5f213c81028ace310571dc5ec0fbbca0b2947
- - name: Verify and assemble the standard Forge mod
- timeout-minutes: 15
- run: .\gradlew.bat check assembleForgeMod verifyForgeModDistribution
- - name: Check the mod JAR is a standard mod and carries no launcher
- shell: pwsh
- run: |
- $jars = @(Get-ChildItem 'build/distributions' -Filter 'luminara-forge-*.jar' -File)
- if ($jars.Count -ne 1) {
- throw "Expected exactly one Luminara mod JAR, found $($jars.Count): $($jars.FullName -join ', ')"
- }
- Add-Type -AssemblyName System.IO.Compression.FileSystem
- $archive = [System.IO.Compression.ZipFile]::OpenRead($jars[0].FullName)
- try {
- $names = $archive.Entries | ForEach-Object { $_.FullName }
- foreach ($required in @('META-INF/mods.toml', 'META-INF/MANIFEST.MF', 'mixins.arclight.refmap.json')) {
- if ($names -notcontains $required) { throw "Missing $required" }
- }
- foreach ($forbidden in @('common.jar', 'gson.jar', 'META-INF/installer.json', 'META-INF/services/net.minecraftforge.forgespi.locating.IModLocator')) {
- if ($names -contains $forbidden) { throw "Legacy launcher entry still present: $forbidden" }
- }
- $launcherClasses = @($names | Where-Object { $_ -like 'io/izzel/arclight/boot/*' -or $_ -like 'io/izzel/arclight/server/*' -or $_ -like 'io/izzel/arclight/forgeinstaller/*' })
- if ($launcherClasses.Count -gt 0) {
- throw "Legacy launcher classes still present: $($launcherClasses -join ', ')"
- }
- $manifest = New-Object System.IO.StreamReader($archive.GetEntry('META-INF/MANIFEST.MF').Open())
- $text = $manifest.ReadToEnd()
- $manifest.Close()
- if ($text -match 'Main-Class') { throw 'The mod JAR must not declare a Main-Class launcher entry' }
- } finally {
- $archive.Dispose()
- }
+ build/libs/*.jar
+ build/libs/SHA256SUMS
diff --git a/.gitignore b/.gitignore
index 44a202dad..e0d6743b9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -29,6 +29,7 @@ atlassian-ide-plugin.xml
# Package Files #
*.jar
+!common/libs/spigot-1.20.1-mapped-deobf.jar
*.war
*.nar
*.ear
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 748d63fb8..85d2abe6d 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,12 +1,13 @@
# Contributing
-Development targets the `stable/Trials` branch of [CraftAmethyst/Luminara](https://github.com/CraftAmethyst/Luminara). Changes must preserve Minecraft `1.20.1`, CraftBukkit `v1_20_R1`, and 64-bit Java 17; Forge resolves to the latest promotion unless `-PforgeVersion` is explicitly supplied.
+Development targets the `stable/Trials` branch of [CraftAmethyst/Luminara](https://github.com/CraftAmethyst/Luminara). Changes must preserve Minecraft `1.20.1`, CraftBukkit `v1_20_R1`, and 64-bit Java 17. The project builds a shared `common` module plus Forge and Fabric loader modules.
## Before opening a change
- Search existing issues and pull requests.
- Keep one independently reviewable change per commit. Do not squash unrelated fixes together.
-- Preserve Forge-only Bukkit compatibility; do not introduce Fabric, NeoForge, or another Minecraft version.
+- Keep shared behavior in `common`; put loader entry points, mixins, services, and metadata in `forge` or `fabric`.
+- Preserve both Forge and Fabric startup paths, including Bukkit/Spigot/Paper compatibility.
- Prefer synchronous, vanilla-compatible behavior over experimental world, chunk, entity, or persistence optimizations.
- Do not add release, Maven publication, custom upload, or credential-handling infrastructure. The project does not publish releases.
@@ -15,25 +16,21 @@ Development targets the `stable/Trials` branch of [CraftAmethyst/Luminara](https
Select a 64-bit JDK 17 through `JAVA_HOME`, then run from the repository root:
```bash
-./gradlew check assembleForgeMod verifyForgeModDistribution
-./gradlew smokeServer
+./gradlew build
```
-The first command must produce `build/distributions/luminara-forge-1.20.1-1.0.15-hotfix.jar` and its `.jar.sha256` file. Forge resolves to the latest promotion by default. A second build invocation is not a repair strategy: do not use the old double-build sequence or `--refresh-dependencies`.
+This builds `common`, `fabric`, and `forge` with the MultiLoader template conventions, including shared sources/resources, access wideners, sources, and javadoc JARs. The self-contained loader JARs are written to `fabric/build/libs` and `forge/build/libs`; CI builds them with `./gradlew build` and stages both loader JARs plus `build/libs/SHA256SUMS` into the root `build/libs` artifact.
-Changes to archive metadata, dependency resolution, or build inputs must also pass:
-
-```bash
-./gradlew verifyReproducibleForgeMod
-```
+`common/libs/spigot-1.20.1-mapped-deobf.jar` is a checked-in build input: Spigot CraftBukkit classes remapped to Mojang names. Regenerate it from Spigot's BuildTools when the Spigot baseline changes.
Use `gradlew.bat` instead of `./gradlew` on Windows.
## Source conventions
- Follow the existing style in each module; do not introduce a second convention.
-- Do not hand-edit or reformat `arclight-common/src/main/java/io/izzel/arclight/common/mod/metrics/Metrics.java`.
-- Treat `arclight-common/src/main/java/io/izzel/arclight/common/mod/util/remapper/generated/` as generated compatibility source. Change its generator or runtime contract rather than applying cosmetic edits.
+- Keep the Gradle group and Java namespace under `org.craftamethyst.luminara`; upstream dependency coordinates and Bukkit/Spigot API package names stay unchanged.
+- Do not hand-edit or reformat `common/src/main/java/org/craftamethyst/luminara/common/mod/metrics/Metrics.java`.
+- Treat `common/src/main/java/org/craftamethyst/luminara/common/mod/util/remapper/generated/` as generated compatibility source. Change its generator or runtime contract rather than applying cosmetic edits.
- Include tests for new observable behavior and regression tests for bug fixes.
- Do not commit generated build output, server state, caches, logs, or IDE metadata.
diff --git a/README.md b/README.md
index 5ab685578..3161a38ae 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
-
+
@@ -35,6 +35,22 @@ Luminara is a fork project developed based on the [Arclight](https://github.com/
- Compatible with Adventure, MiniMessage, signed chat (signed-chat), and some commonly used Paper APIs
- Better mod and plugin compatibility
+## Building from source
+
+The project follows the [MultiLoader-Template](https://github.com/jaredlll08/MultiLoader-Template) 1.20.1 layout. A single Java 17 build produces the shared, Fabric, and Forge artifacts:
+
+```bash
+./gradlew build
+```
+
+| Module | Output |
+| --- | --- |
+| `common` | `common/build/libs/luminara-common-1.20.1-*.jar` |
+| `fabric` | `fabric/build/libs/luminara-fabric-1.20.1-*.jar` |
+| `forge` | `forge/build/libs/luminara-forge-1.20.1-*.jar` |
+
+The loader JARs are self-contained and can be started by placing them in the respective `mods/` directory. CI stages both loader JARs and `build/libs/SHA256SUMS` into `build/libs`; verify the downloaded files with `sha256sum -c build/libs/SHA256SUMS`. See [CONTRIBUTING.md](CONTRIBUTING.md) for the development workflow.
+
## Supported Versions
| Component | stable/Trials | stable/FeudalKings |
@@ -43,8 +59,8 @@ Luminara is a fork project developed based on the [Arclight](https://github.com/
| JDK | 17, 21 | 21, 25 |
| Forge | ≥ 47.4.0 | Not supported |
| NeoForge | Not supported | ≥ 21.1.117 |
-| Fabric Loader | Not supported | ≥ 0.16.0 |
-| Fabric API | Not supported | ≥ 0.115.0 |
+| Fabric Loader | ≥ 0.16.9 | ≥ 0.16.0 |
+| Fabric API | ≥ 0.92.1+1.20.1 | ≥ 0.115.0 |
| CraftBukkit | `v1_20_R1` | `v1_21_R1` |
## Community Support
diff --git a/README_sc.md b/README_sc.md
index bd64ed38b..3840ba845 100644
--- a/README_sc.md
+++ b/README_sc.md
@@ -35,6 +35,22 @@ Luminara 是一个基于 [Arclight](https://github.com/IzzelAliz/Arclight) 服
- 兼容 Adventure、MiniMessage、签名聊天(signed-chat)以及部分常用 Paper API
- 具备更好的模组与插件兼容性
+## 从源码构建
+
+项目采用 [MultiLoader-Template](https://github.com/jaredlll08/MultiLoader-Template) 1.20.1 布局,一次 Java 17 构建即可生成共享、Fabric 和 Forge 产物:
+
+```bash
+./gradlew build
+```
+
+| 模块 | 产物 |
+| --- | --- |
+| `common` | `common/build/libs/luminara-common-1.20.1-*.jar` |
+| `fabric` | `fabric/build/libs/luminara-fabric-1.20.1-*.jar` |
+| `forge` | `forge/build/libs/luminara-forge-1.20.1-*.jar` |
+
+两个 loader 产物均为自包含 JAR,可直接放入对应服务端的 `mods/` 目录启动。CI 会将两个 loader JAR 与 `build/libs/SHA256SUMS` 统一放入 `build/libs`,可使用 `sha256sum -c build/libs/SHA256SUMS` 校验下载文件。开发流程见 [CONTRIBUTING.md](CONTRIBUTING.md)。
+
## 支持版本
@@ -44,8 +60,8 @@ Luminara 是一个基于 [Arclight](https://github.com/IzzelAliz/Arclight) 服
| JDK | 17、21 | 21、25 |
| Forge | ≥ 47.4.0 | 不支持 |
| NeoForge | 不支持 | ≥ 21.1.117 |
-| Fabric Loader | 不支持 | ≥ 0.16.0 |
-| Fabric API | 不支持 | ≥ 0.115.0 |
+| Fabric Loader | ≥ 0.16.9 | ≥ 0.16.0 |
+| Fabric API | ≥ 0.92.1+1.20.1 | ≥ 0.115.0 |
| CraftBukkit | `v1_20_R1` | `v1_21_R1` |
## 社区支持
diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md
index 33619c601..8dac16d4b 100644
--- a/RELEASE_NOTES.md
+++ b/RELEASE_NOTES.md
@@ -1,6 +1,6 @@
-# Luminara 1.0.16
+# Luminara 2.0.0-alpha.1
-> Minecraft 1.20.1 | Forge 47.4.23 | Java 17 | Dedicated Server
+> Minecraft 1.20.1 | Forge 47.4.0 | Fabric Loader 0.16.9 | Java 17 | Dedicated Server
中文发布说明
@@ -9,42 +9,49 @@
### BREAKING CHANGES
-- 本项目产物现在以标准 Forge Mod JAR 形式提供,不再使用旧的混合端/补丁式分发方式。
-- 同时使用 Radium、LostCities 和 FastChunkGen 时,必须保持 FastChunkGen 的 `[threadedWorldGen] enabled = false`。启用异步世界生成会破坏 `WorldGenRegion` 的区块顺序,并导致 `No chunk exists` 崩溃。
+- 项目构建结构迁移到 [MultiLoader-Template](https://github.com/jaredlll08/MultiLoader-Template) 的 `common` / `fabric` / `forge` 布局。
+- 不再提供单一 Forge 混合端 JAR。Forge 与 Fabric 分别产出 `luminara-forge-1.20.1-*.jar` 和 `luminara-fabric-1.20.1-*.jar`。
+- 两个 loader 产物均为自包含 JAR(约 21 MB),已打包运行所需依赖。
+- 本 alpha 版本尚未在产物中启用 Bukkit/Spigot/Paper 的 Mixin 注入,插件兼容能力仍在迁移中;详见“已知限制”。
### Added
-- 实现 `PotionEffectType#getEffectCategory()` 及效果分类颜色。
-- 实现 `PlayerAdvancementCriterionGrantEvent`,支持取消并撤销 criterion 进度。
-- 实现 `PreCreatureSpawnEvent`,覆盖自然生成、刷怪笼、`EntityType#spawn` 和 `SpawnUtil#trySpawnMob`。
-- 为 Multiverse-Core 暴露 `EntityType#getCategory()`、实体分类别名字段及无版本号 `CraftSpawnCategory#toBukkit()`。
-- 补充六种语言的 `dist.logic-world-check`。
-- 新增关服超时强制退出机制。
+- 新增 Fabric Loader 发行版,包含 `preLaunch` 与 `main` 入口点。
+- 新增共享 `common` 模块,Forge 与 Fabric 复用同一套核心代码和 access widener。
+- 在 Mixin 应用前完成平台服务引导,避免早期类加载阶段访问未初始化的注册表。
+- Forge `runServer` 运行时自动加载打包的 loader 依赖。
+- 两个 loader 的构建均输出 sources 与 javadoc JAR。
+- CI 在 `./gradlew build` 后将两个 loader JAR 暂存到根目录 `build/libs`,并生成单个 `SHA256SUMS` 一同上传。
### Fixed
-- 统一 Bukkit/JUL 日志到 Log4j 输出格式。
-- 修复控制台对 `§x...` 和 `&x...` RGB 颜色的渲染。
-- 确保日志配置在启动 ASCII 横幅之前应用。
-- 修复 FastChunkGen 与 Hyperbox 之间的空 `IOWorker` 路径崩溃。
-- 修复 FastChunkGen 与 Luminara `DistanceManager` 的注入冲突。
-- 修复 Multiverse 分类映射中 `getCategory`、`CraftSpawnCategory` 和实体别名字段缺失的问题。
-- 修复实体别名引起的 `minecraft`/`luminara` 模块 split package 冲突,以及接口过早初始化造成的空字段。
-- 恢复异步访问保护,并修复服务器关闭后进程残留。
+- 修复 Forge 独立服务端日志被替换为 `uminaraFormatting` 的问题;日志布局不再依赖尚未注册的自定义 Log4j 转换器。
+- 修复 Forge 与 Fabric 构建产物在真实专用服务端上的启动问题。
+- 修复 Forge 开发环境 `runServer` 找不到打包依赖的问题。
+- 将 Gradle 脚本、`buildSrc` 约定和模块任务对齐 MultiLoader 模板;`./gradlew build` 可直接产出全部构建物。
### Changed
-- 版本号更新为 `1.0.16`。
-- Luminara 的 Forge 依赖顺序改为在 Forge 和 Minecraft 之前加载。
-- 验证运行目标更新为 Forge `47.4.23`。
-- 发行物继续使用标准 Forge Mod JAR,并执行依赖校验和发行物校验。
+- 版本号更新为 `2.0.0-alpha.1`。
+- Forge 目标更新为 `1.20.1-47.4.0`;Fabric Loader 固定为 `0.16.9`,Fabric API 为 `0.92.1+1.20.1`。
+- Forge 日志改用标准 `%msg{nolookup}` 输出,保留可读的控制台与服务端日志。
+- 移除自定义的 `assembleForgeMod`、`assembleFabricMod`、发行物校验和冒烟测试 Gradle 任务,构建入口统一为 `./gradlew build`。
+
+### 已知限制
+
+- Forge 产物当前没有声明 `MixinConfigs`,Fabric `fabric.mod.json` 的 `mixins` 为空;Bukkit/Spigot/Paper 兼容注入在这些 alpha 产物中尚未生效。
+- Forge Mixin 注解处理器与 refmap 仍待恢复;部分共享 Mixin 需要先拆分 Forge 专属实现。
+- 当前验证范围为专用服务端启动、世界创建与正常关闭;插件与模组兼容性回归尚未覆盖。
### 兼容性
- Minecraft:1.20.1
-- Forge:47.4.x
+- Forge:1.20.1-47.4.0
+- Fabric Loader:0.16.9
+- Fabric API:0.92.1+1.20.1
+- CraftBukkit:`v1_20_R1`
- Java:17
-- 环境:仅服务端
+- 环境:仅专用服务端
@@ -52,32 +59,36 @@
### BREAKING CHANGES
-- Project artifacts are now distributed as a standard Forge Mod JAR instead of the legacy hybrid-server/patch-style distribution.
-- When Radium, LostCities, and FastChunkGen are used together, FastChunkGen's `[threadedWorldGen] enabled` must remain `false`. Asynchronous world generation breaks `WorldGenRegion` chunk ordering and can cause `No chunk exists` crashes.
+- The build now follows the [MultiLoader-Template](https://github.com/jaredlll08/MultiLoader-Template) `common` / `fabric` / `forge` layout.
+- The single Forge hybrid-server JAR is no longer produced. Forge and Fabric now ship as `luminara-forge-1.20.1-*.jar` and `luminara-fabric-1.20.1-*.jar` respectively.
+- Both loader artifacts are self-contained (about 21 MB) and bundle their runtime dependencies.
+- This alpha does not yet enable Bukkit/Spigot/Paper Mixin injection in the produced artifacts. Plugin compatibility is still being ported; see "Known limitations".
### Added
-- Implemented `PotionEffectType#getEffectCategory()` and effect category colors.
-- Implemented `PlayerAdvancementCriterionGrantEvent` with cancellation and criterion rollback.
-- Implemented `PreCreatureSpawnEvent` for natural spawning, spawners, `EntityType#spawn`, and `SpawnUtil#trySpawnMob`.
-- Exposed Multiverse-Core aliases for `EntityType#getCategory()`, entity category fields, and unversioned `CraftSpawnCategory#toBukkit()`.
-- Added `dist.logic-world-check` translations for all six locales.
-- Added a shutdown timeout that forcefully terminates a hung server process.
+- Added a Fabric Loader distribution with `preLaunch` and `main` entrypoints.
+- Added a shared `common` module so Forge and Fabric reuse the same core code and access widener.
+- Bootstrapped platform services before Mixin application to avoid touching uninitialized registries during early class loading.
+- Bundled loader dependencies are now placed on the `runServer` classpath automatically.
+- Both loaders now produce sources and javadoc JARs.
+- CI stages both loader JARs into the root `build/libs` after `./gradlew build` and generates a single `SHA256SUMS` for upload.
### Fixed
-- Routed Bukkit/JUL logs through Log4j with a consistent format.
-- Fixed console rendering for `§x...` and `&x...` RGB colors.
-- Applied logging configuration before the startup ASCII banner.
-- Fixed the null `IOWorker` path crash between FastChunkGen and Hyperbox.
-- Fixed the `DistanceManager` injection conflict with FastChunkGen.
-- Fixed missing Multiverse `getCategory`, `CraftSpawnCategory`, and entity alias fields.
-- Removed the `minecraft`/`luminara` split-package conflict and fixed aliases being initialized as null.
-- Restored asynchronous access guards and fixed lingering server processes after shutdown.
+- Fixed Forge dedicated-server logs being replaced by `uminaraFormatting`; log layouts no longer depend on a custom Log4j converter that was not registered yet.
+- Fixed startup of the Forge and Fabric artifacts on real dedicated servers.
+- Fixed missing bundled dependencies during Forge `runServer` development launches.
+- Aligned Gradle scripts, `buildSrc` conventions, and module tasks with the MultiLoader template; `./gradlew build` now produces every build output directly.
### Changed
-- Updated the project version to `1.0.16`.
-- Changed Forge dependency ordering so Luminara loads before Forge and Minecraft.
-- Updated the validated runtime target to Forge `47.4.23`.
-- Continued shipping as a standard Forge Mod JAR with dependency and distribution verification.
+- Updated the project version to `2.0.0-alpha.1`.
+- Updated the Forge target to `1.20.1-47.4.0`; pinned Fabric Loader to `0.16.9` and Fabric API to `0.92.1+1.20.1`.
+- Switched Forge logging to standard `%msg{nolookup}` output for readable console and server logs.
+- Removed the custom `assembleForgeMod`, `assembleFabricMod`, distribution verification, and smoke test Gradle tasks. `./gradlew build` is the single build entrypoint.
+
+### Known limitations
+
+- The Forge artifact currently declares no `MixinConfigs`, and Fabric's `fabric.mod.json` has an empty `mixins` list. Bukkit/Spigot/Paper compatibility injection is not active in these alpha artifacts.
+- Forge Mixin annotation processing and refmap generation still need to be restored; some shared Mixins require Forge-specific splits first.
+- Verification currently covers dedicated-server startup, world creation, and clean shutdown. Plugin and mod compatibility regressions are not yet covered.
diff --git a/arclight-common/.gitignore b/arclight-common/.gitignore
deleted file mode 100644
index bd513ae66..000000000
--- a/arclight-common/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-/build/
-/bin/
-/.project
-/.classpath
-/.settings/
\ No newline at end of file
diff --git a/arclight-common/build.gradle b/arclight-common/build.gradle
deleted file mode 100644
index b5f7f9610..000000000
--- a/arclight-common/build.gradle
+++ /dev/null
@@ -1,354 +0,0 @@
-import io.izzel.arclight.gradle.tasks.GenerateMappingInventoryTask
-
-import io.izzel.arclight.gradle.tasks.GenerateMixinInventoryTask
-
-import io.izzel.arclight.gradle.tasks.BundleJarJarTask
-
-buildscript {
- repositories {
- maven { url = 'https://maven.minecraftforge.net' }
- maven { url = 'https://repo.spongepowered.org/repository/maven-public' }
- mavenCentral()
- maven { url = 'https://maven.izzel.io/releases' }
- // maven { url = 'https://maven.parchmentmc.org' }
- }
- dependencies {
- classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: libs.versions.forgegradle.get()
- // classpath 'org.parchmentmc:librarian:1.+'
- classpath "org.spongepowered:mixingradle:${libs.versions.mixingradle.get()}"
- classpath "io.izzel.arclight:arclight-gradle-plugin:${libs.versions.arclight.gradle.plugin.get()}"
- }
-}
-
-apply plugin: 'net.minecraftforge.gradle'
-// apply plugin: 'org.parchmentmc.librarian.forgegradle'
-apply plugin: 'org.spongepowered.mixin'
-apply plugin: 'luminara.java-conventions'
-apply plugin: 'idea'
-apply plugin: 'io.izzel.arclight'
-
-base.archivesName = "luminara-common-${minecraftVersion}"
-
-arclight {
- mcVersion = minecraftVersion
- forgeVersion = project.ext.forgeVersion
- bukkitVersion = libs.versions.bukkit.package.get()
- sharedSpigot = true
- wipeVersion = true
- reobfVersion = true
- accessTransformer = project.file('bukkit.at')
- // packageName = 'spigot'
-}
-
-configurations {
- embed {
- // Everything on embed lands inside the mod JAR. Forge already puts ASM, Gson,
- // Guava, commons-lang3, log4j and friends on the module path, so a bundled copy of
- // any of them becomes a second module exporting the same packages and Java refuses
- // to build the game layer. Only the leaf artifact of each library is embedded; its
- // transitive dependencies are expected from Forge.
- transitive = false
- }
- reobfuscatedElements {
- canBeConsumed = true
- canBeResolved = false
- }
-}
-
-sourceSets {
- smokePlugin
- smokeMod
-}
-
-// The smoke fixtures run inside the server, so they compile against the API the server
-// already provides instead of inheriting this module's runtime classpath. Inheriting it
-// put a second copy of Forge-provided libraries such as ASM on the module path, which
-// makes the module layer fail to resolve. The mod fixture uses a compile-only stub of the
-// annotation it needs, so no Forge artifact enters the build.
-dependencies {
- smokePluginCompileOnly "org.spigotmc:spigot-api:${libs.versions.spigot.get()}@jar"
-}
-
-
-minecraft {
- //mappings channel: 'parchment', version: "2021.08.22-$minecraftVersion"
- mappings channel: 'official', version: minecraftVersion
- // copyIdeResources = true
- accessTransformer = project.file('src/main/resources/META-INF/accesstransformer.cfg')
-}
-
-
-def mappedSpigotJar = files(layout.buildDirectory.file("arclight_cache/spigot-${minecraftVersion}-mapped-deobf.jar"))
-mappedSpigotJar.builtBy(tasks.named('remapSpigotJar'))
-
-dependencies {
- minecraft "net.minecraftforge:forge:$minecraftVersion-$forgeVersion"
- compileOnly mappedSpigotJar
- implementation "org.spigotmc:spigot-api:${libs.versions.spigot.get()}@jar"
- implementation 'org.jetbrains:annotations:23.0.0'
-
- implementation "org.spongepowered:mixin:${libs.versions.mixin.runtime.get()}"
- annotationProcessor "org.spongepowered:mixin:${libs.versions.mixin.processor.get()}:processor"
- annotationProcessor "org.apache.logging.log4j:log4j-core:${libs.versions.log4j.get()}"
-
- implementation "io.izzel.arclight:mixin-tools:${libs.versions.mixin.tools.get()}"
- annotationProcessor "io.izzel.arclight:mixin-tools:${libs.versions.mixin.tools.get()}"
-
- implementation 'jline:jline:2.12.1'
- implementation 'net.md-5:SpecialSource:1.11.0'
- implementation "org.apache.logging.log4j:log4j-jul:${libs.versions.log4j.get()}"
- implementation 'net.md-5:bungeecord-chat:1.16-R0.4'
- implementation "com.mysql:mysql-connector-j:${libs.versions.mysql.get()}"
- implementation 'org.yaml:snakeyaml:2.0'
- implementation "io.izzel:tools:$toolsVersion"
- implementation "io.izzel.arclight:arclight-api:$apiVersion"
- implementation project(':i18n-config')
-
- def adventureArtifacts = [
- 'adventure-api',
- 'adventure-key',
- 'adventure-text-serializer-gson',
- 'adventure-text-serializer-json',
- 'adventure-text-serializer-legacy',
- 'adventure-text-serializer-plain',
- 'adventure-text-minimessage',
- 'adventure-text-logger-slf4j',
- 'examination-api'
- ]
- implementation platform("net.kyori:adventure-bom:${libs.versions.adventure.get()}")
- embed platform("net.kyori:adventure-bom:${libs.versions.adventure.get()}")
- adventureArtifacts.each { artifact ->
- implementation("net.kyori:${artifact}") {
- exclude group: 'org.slf4j'
- exclude group: 'org.checkerframework'
- if (artifact == 'adventure-text-serializer-gson') exclude group: 'com.google.code.gson'
- }
- embed("net.kyori:${artifact}") {
- exclude group: 'org.slf4j'
- exclude group: 'org.checkerframework'
- if (artifact == 'adventure-text-serializer-gson') exclude group: 'com.google.code.gson'
- }
- }
-
- embed 'net.md-5:bungeecord-chat:1.16-R0.4@jar'
- embed "org.spigotmc:spigot-api:${libs.versions.spigot.get()}@jar"
- embed(project(':i18n-config')) {
- transitive = false
- }
- testImplementation platform("org.junit:junit-bom:${libs.versions.junit.get()}")
- testImplementation 'org.junit.jupiter:junit-jupiter'
- testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
-}
-
-def jarJarMetadataFile = layout.buildDirectory.file("jarjar/META-INF/jarjar/metadata.json")
-
-/*
- * Libraries Forge does not provide travel as a JarJar payload so each keeps its own
- * module, instead of merging their packages into the mod JAR and colliding with Forge's
- * copies. They come from a detached configuration: declaring them on a project
- * configuration makes ForgeGradle resolve it while it is still building its own
- * repositories, which fails the build.
- *
- * ASM is deliberately absent. Forge already puts it on the module path, and a nested copy
- * makes the layer fail with "Module luminara reads more than one module named
- * org.objectweb.asm.tree". Keeping it out has a cost: mod code cannot see ASM, because the
- * module class loader only searches its own layer while Forge's ASM lives on the legacy
- * class path. See docs/known-limitations.md.
- */
-def jarJarLibraries = [
- "io.izzel:tools:${toolsVersion}",
- "io.izzel.arclight:arclight-api:$apiVersion",
- "io.izzel.arclight:mixin-tools:${libs.versions.mixin.tools.get()}",
- "org.spongepowered:configurate-core:${libs.versions.configurate.get()}",
- "org.spongepowered:configurate-yaml:${libs.versions.configurate.get()}",
- "org.yaml:snakeyaml:2.0",
- 'net.md-5:SpecialSource:1.11.0',
- 'jline:jline:2.12.1',
- "org.xerial:sqlite-jdbc:${libs.versions.sqlite.get()}",
- "com.mysql:mysql-connector-j:${libs.versions.mysql.get()}",
- // Forge ships log4j-api and log4j-core but not the JUL bridge, and Luminara installs
- // it as the java.util.logging manager. It travels as a module so the module layer
- // resolves it once, and no mod class links it directly.
- "org.apache.logging.log4j:log4j-jul:${libs.versions.log4j.get()}"
-]
-def jarJarFiles = providers.provider {
- def detached = configurations.detachedConfiguration(
- jarJarLibraries.collect { dependencies.create(it) } as org.gradle.api.artifacts.Dependency[])
- detached.transitive = false
- detached.resolve()
-}
-
-def bundleJarJar = tasks.register('bundleJarJar', BundleJarJarTask) {
- description = 'Collects the libraries Forge does not provide into a JarJar payload.'
- libraries.from(jarJarFiles)
- coordinates.set(
- providers.provider {
- jarJarLibraries.collectEntries { coordinate ->
- def parts = coordinate.split(':')
- [("${parts[1]}-${parts[2]}.jar".toString()): coordinate]
- }
- }
- )
- metadataFile.set(jarJarMetadataFile)
-}
-
-jar {
- manifest.attributes 'MixinConnector': 'io.izzel.arclight.common.mod.ArclightConnector'
- from { configurations.embed.collect { it.isDirectory() ? it : zipTree(it) } } {
- exclude "META-INF/MANIFEST.MF"
- exclude "META-INF/*.SF"
- exclude "META-INF/*.DSA"
- exclude "META-INF/*.RSA"
- exclude "LICENSE.txt"
- exclude "META-INF/services/**"
- exclude "org/apache/commons/lang/enum/**"
- // Forge places every mod on the module path. A bundled library that still carries
- // a module descriptor becomes a named module and then clashes with the copy Forge
- // already provides, so the descriptors are dropped to keep them plain class path
- // entries, exactly like the launcher did.
- exclude "module-info.class"
- exclude "META-INF/versions/*/module-info.class"
- }
- // JarJar payload: one nested JAR per library plus the metadata Forge reads to load it.
- from(jarJarFiles) {
- into 'META-INF/jarjar'
- }
- from(jarJarMetadataFile) {
- into 'META-INF/jarjar'
- }
- dependsOn(bundleJarJar)
- duplicatesStrategy = DuplicatesStrategy.EXCLUDE
-}
-
-def mainJar = tasks.named('jar', Jar)
-
-def srgJar = tasks.register('srgJar', Jar) {
- from(mainJar.flatMap { it.archiveFile }.map { zipTree(it) }) {
- include 'io/izzel/**'
- exclude 'io/izzel/arclight/common/mixin/**'
- }
- archiveClassifier.set('srg')
-}
-
-def spigotJar = tasks.register('spigotJar', Jar) {
- from(srgJar.flatMap { it.archiveFile }.map { zipTree(it) })
- archiveClassifier.set('spigot')
-}
-
-def renameSpigotJar = tasks.register('renameSpigotJar', net.minecraftforge.gradle.userdev.tasks.RenameJarInPlace) {
- input.set(spigotJar.flatMap { it.archiveFile })
- hasLog = false
- mappings.set(layout.buildDirectory.file('arclight_cache/tmp_srg/bukkit_srg.srg'))
- args.add('--reverse')
-}
-spigotJar.configure { finalizedBy(renameSpigotJar) }
-
-def reobfVersionMappingFile = layout.buildDirectory.file("arclight_cache/tmp_srg/reobf_version_${libs.versions.bukkit.package.get()}.srg")
-def generateReobfVersionMapping = tasks.register('generateReobfVersionMapping') {
- outputs.file(reobfVersionMappingFile)
- doLast {
- def output = reobfVersionMappingFile.get().asFile
- output.parentFile.mkdirs()
- output.setText("PK: org/bukkit/craftbukkit/v org/bukkit/craftbukkit/${libs.versions.bukkit.package.get()}\n", 'UTF-8')
- }
-}
-tasks.matching { it.name == 'reobfJar' }.configureEach {
- dependsOn(generateReobfVersionMapping)
-}
-
-tasks.withType(net.minecraftforge.gradle.userdev.tasks.RenameJarInPlace).configureEach {
- if (name == 'reobfJar') {
- extraMappings.from(layout.projectDirectory.file('extra_mapping.tsrg'))
- }
-}
-
-artifacts {
- add('reobfuscatedElements', mainJar) {
- builtBy(tasks.matching { it.name == 'reobfJar' })
- }
-}
-
-
-processResources {
- filesMatching("**/mods.toml") {
- expand 'version': "$minecraftVersion-${project.version}-$gitHash"
- }
-}
-processSmokeModResources {
- filesMatching("META-INF/mods.toml") {
- expand 'forgeVersion': forgeVersion
- }
-}
-
-def smokePluginJar = tasks.register('smokePluginJar', Jar) {
- archiveFileName.set('luminara-smoke-plugin.jar')
- destinationDirectory.set(layout.buildDirectory.dir('smoke-fixtures'))
- from(sourceSets.smokePlugin.output)
-}
-
-def smokeModJar = tasks.register('smokeModJar', Jar) {
- archiveFileName.set('luminara-smoke-mod.jar')
- destinationDirectory.set(layout.buildDirectory.dir('smoke-fixtures'))
- from(sourceSets.smokeMod.output) {
- // Compile-only stub of the Forge annotation; the server provides the real one.
- exclude 'net/minecraftforge/**'
- }
-}
-
-tasks.named('compileSmokePluginJava') {
- dependsOn(tasks.named('remapSpigotJar'))
-}
-
-tasks.named('compileSmokeModJava') {
- dependsOn(tasks.named('remapSpigotJar'))
-}
-
-remapSpigotJar {
- includes.add('net/minecraft/world/level/block/ChestBlock$DoubleInventory')
-}
-
-mixin {
- add sourceSets.main, 'mixins.arclight.refmap.json'
- extraMappings(project.file('extra_mapping.tsrg').absolutePath)
-}
-
-def generateMixinInventory = tasks.register('generateMixinInventory', GenerateMixinInventoryTask) {
- dependsOn(tasks.named('classes'))
- configFiles.from([
- 'mixins.arclight.core.json',
- 'mixins.arclight.bukkit.json',
- 'mixins.arclight.forge.json',
- 'mixins.arclight.compat.json'
- ].collect { layout.projectDirectory.file("src/main/resources/${it}") })
- mixinClasses.from(sourceSets.main.output.classesDirs)
- targetClasspath.from(sourceSets.main.compileClasspath)
- targetClasspath.from(layout.buildDirectory.file("fg_cache/net/minecraftforge/forge/${minecraftVersion}-${forgeVersion}/forge-${minecraftVersion}-${forgeVersion}-injected.jar"))
- outputFile.set(rootProject.layout.buildDirectory.file('reports/mixins/inventory.json'))
-}
-
-def generateMappingInventory = tasks.register('generateMappingInventory', GenerateMappingInventoryTask) {
- dependsOn(tasks.named('compileJava'), tasks.named('remapSpigotJar'))
- forgeAccessTransformer.set(layout.projectDirectory.file('src/main/resources/META-INF/accesstransformer.cfg'))
- bukkitAccessTransformer.set(layout.projectDirectory.file('bukkit.at'))
- forgeAccessLog.set(layout.buildDirectory.file('_atJar_4/accesstransform.log'))
- extraMappings.set(layout.projectDirectory.file('extra_mapping.tsrg'))
- srgMappings.set(layout.buildDirectory.file('createMcpToSrg/output.tsrg'))
- bukkitJar.set(rootProject.layout.buildDirectory.file("arclight_cache/buildtools/spigot-${minecraftVersion}.jar"))
- bukkitPatchJar.set(layout.buildDirectory.file("arclight_cache/spigot-${minecraftVersion}-mapped-deobf.jar"))
- bukkitMappings.set(layout.buildDirectory.file('arclight_cache/tmp_srg/bukkit_srg.srg'))
- minecraftClasspath.from(layout.buildDirectory.file("fg_cache/net/minecraftforge/forge/${minecraftVersion}-${forgeVersion}_mapped_official_${minecraftVersion}/forge-${minecraftVersion}-${forgeVersion}_mapped_official_${minecraftVersion}.jar"))
- referenceSources.from(fileTree('src/main/java') { include '**/*.java' })
- generatedRemapperInputs.from(
- layout.buildDirectory.file('arclight_cache/tmp_srg/bukkit_srg.srg'),
- layout.buildDirectory.file('arclight_cache/tmp_srg/inheritanceMap.txt')
- )
- outputFile.set(rootProject.layout.buildDirectory.file('reports/mappings/inventory.json'))
-}
-
-tasks.named('check') {
- dependsOn(generateMixinInventory, generateMappingInventory)
-}
-
-compileJava {
- options.compilerArgs << '-XDignore.symbol.file' << '-XDenableSunApiLintControl'
-}
diff --git a/arclight-common/gradle.lockfile b/arclight-common/gradle.lockfile
deleted file mode 100644
index afb8711c9..000000000
--- a/arclight-common/gradle.lockfile
+++ /dev/null
@@ -1,147 +0,0 @@
-# This is a Gradle generated file for dependency locking.
-# Manual edits can break the build and are not advised.
-# This file is expected to be part of source control.
-ca.weblite:java-objc-bridge:1.1=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.electronwill.night-config:core:3.6.4=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.electronwill.night-config:toml:3.6.4=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.github.oshi:oshi-core:6.2.2=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.google.auto.service:auto-service-annotations:1.1.1=compileClasspath,testCompileClasspath
-com.google.code.findbugs:jsr305:3.0.2=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.google.code.gson:gson:2.10=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.google.errorprone:error_prone_annotations:2.11.0=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.google.guava:failureaccess:1.0.1=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.google.guava:guava:31.1-jre=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.google.j2objc:j2objc-annotations:1.3=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.google.protobuf:protobuf-java:3.21.9=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.ibm.icu:icu4j:71.1=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.machinezoo.noexception:noexception:1.7.1=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.mojang:authlib:4.0.43=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.mojang:blocklist:1.0.10=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.mojang:brigadier:1.1.8=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.mojang:datafixerupper:6.0.8=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.mojang:logging:1.1.1=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.mojang:patchy:2.2.10=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.mojang:text2speech:1.17.9=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.mysql:mysql-connector-j:8.0.33=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.opencsv:opencsv:4.4=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-commons-beanutils:commons-beanutils:1.9.3=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-commons-codec:commons-codec:1.15=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-commons-collections:commons-collections:3.2.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-commons-io:commons-io:2.11.0=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-commons-logging:commons-logging:1.2=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-cpw.mods:bootstraplauncher:1.1.2=_compileJava_1,compileClasspath,minecraft,modules_userdev_resolver,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-cpw.mods:modlauncher:10.0.9=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-cpw.mods:securejarhandler:2.1.10=_compileJava_1,compileClasspath,minecraft,modules_userdev_resolver,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-io.izzel.arclight:arclight-api:1.5.4=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-io.izzel.arclight:mixin-tools:1.0.1=annotationProcessor,compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-io.izzel:tools:1.3.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-io.netty:netty-buffer:4.1.82.Final=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-io.netty:netty-codec:4.1.82.Final=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-io.netty:netty-common:4.1.82.Final=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-io.netty:netty-handler:4.1.82.Final=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-io.netty:netty-resolver:4.1.82.Final=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-io.netty:netty-transport-classes-epoll:4.1.82.Final=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-io.netty:netty-transport-native-epoll:4.1.82.Final=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-io.netty:netty-transport-native-unix-common:4.1.82.Final=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-io.netty:netty-transport:4.1.82.Final=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-it.unimi.dsi:fastutil:8.5.9=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-jline:jline:2.12.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.java.dev.jna:jna-platform:5.12.1=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.java.dev.jna:jna:5.12.1=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.jodah:typetools:0.6.3=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.kyori:adventure-api:4.26.1=compileClasspath,embed,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.kyori:adventure-bom:4.26.1=compileClasspath,embed,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.kyori:adventure-key:4.26.1=compileClasspath,embed,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.kyori:adventure-text-logger-slf4j:4.26.1=compileClasspath,embed,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.kyori:adventure-text-minimessage:4.26.1=compileClasspath,embed,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.kyori:adventure-text-serializer-commons:4.26.1=embed,runtimeClasspath,testRuntimeClasspath
-net.kyori:adventure-text-serializer-gson:4.26.1=compileClasspath,embed,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.kyori:adventure-text-serializer-json:4.26.1=compileClasspath,embed,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.kyori:adventure-text-serializer-legacy:4.26.1=compileClasspath,embed,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.kyori:adventure-text-serializer-plain:4.26.1=compileClasspath,embed,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.kyori:examination-api:1.3.0=compileClasspath,embed,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.kyori:examination-string:1.3.0=compileClasspath,embed,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.kyori:option:1.1.0=compileClasspath,embed,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.md-5:SpecialSource:1.11.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.md-5:bungeecord-chat:1.16-R0.4=compileClasspath,embed,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraft:client:1.20.1=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraft:mappings_official:1.20.1=minecraft,runtimeClasspath,testRuntimeClasspath
-net.minecraftforge:JarJarFileSystems:0.3.19=_compileJava_1,compileClasspath,minecraft,modules_userdev_resolver,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraftforge:JarJarMetadata:0.3.19=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraftforge:JarJarSelector:0.3.19=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraftforge:accesstransformers:8.0.4=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraftforge:coremods:5.2.4=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraftforge:eventbus:6.2.33=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraftforge:fmlcore:1.20.1-47.4.22=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraftforge:fmlearlydisplay:1.20.1-47.4.22=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraftforge:fmlloader:1.20.1-47.4.22=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraftforge:forge:1.20.1-47.4.22_mapped_official_1.20.1_at_125ad0416e560ed1e05954922eef3ce61292e592=compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraftforge:forgespi:7.0.1=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraftforge:javafmllanguage:1.20.1-47.4.22=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraftforge:lowcodelanguage:1.20.1-47.4.22=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraftforge:mclanguage:1.20.1-47.4.22=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraftforge:mergetool:1.1.5=compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraftforge:mergetool:1.1.7=_compileJava_1
-net.minecraftforge:srgutils:0.4.11=minecraft,runtimeClasspath,testRuntimeClasspath
-net.minecraftforge:srgutils:0.4.15=_compileJava_1
-net.minecraftforge:unsafe:0.2.0=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecrell:terminalconsoleappender:1.2.0=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.sf.jopt-simple:jopt-simple:5.0.4=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.abego.treelayout:org.abego.treelayout.core:1.0.3=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.antlr:ST4:4.3=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.antlr:antlr-runtime:3.5.2=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.antlr:antlr4-runtime:4.9.1=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.antlr:antlr4:4.9.1=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.apache.commons:commons-collections4:4.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.apache.commons:commons-compress:1.21=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.apache.commons:commons-lang3:3.12.0=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.apache.commons:commons-text:1.3=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.apache.httpcomponents:httpclient:4.5.13=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.apache.httpcomponents:httpcore:4.4.15=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.apache.logging.log4j:log4j-api:2.19.0=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.apache.logging.log4j:log4j-core:2.19.0=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.apache.logging.log4j:log4j-jul:2.19.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.apache.logging.log4j:log4j-slf4j2-impl:2.19.0=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.apache.maven:maven-artifact:3.8.5=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.apiguardian:apiguardian-api:1.1.2=testCompileClasspath
-org.checkerframework:checker-qual:3.12.0=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.codehaus.plexus:plexus-utils:3.3.0=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.glassfish:javax.json:1.0.4=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.jetbrains:annotations:24.0.1=_compileJava_1,minecraft,runtimeClasspath,testRuntimeClasspath
-org.jetbrains:annotations:26.0.2-1=compileClasspath,testCompileClasspath
-org.jline:jline-reader:3.12.1=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.jline:jline-terminal:3.12.1=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.joml:joml:1.10.5=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.jspecify:jspecify:1.0.0=compileClasspath,testCompileClasspath
-org.junit.jupiter:junit-jupiter-api:5.14.4=testCompileClasspath,testRuntimeClasspath
-org.junit.jupiter:junit-jupiter-engine:5.14.4=testRuntimeClasspath
-org.junit.jupiter:junit-jupiter-params:5.14.4=testCompileClasspath,testRuntimeClasspath
-org.junit.jupiter:junit-jupiter:5.14.4=testCompileClasspath,testRuntimeClasspath
-org.junit.platform:junit-platform-commons:1.14.4=testCompileClasspath,testRuntimeClasspath
-org.junit.platform:junit-platform-engine:1.14.4=testRuntimeClasspath
-org.junit.platform:junit-platform-launcher:1.14.4=testRuntimeClasspath
-org.junit:junit-bom:5.14.4=testCompileClasspath,testRuntimeClasspath
-org.lwjgl:lwjgl-glfw:3.3.1=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.lwjgl:lwjgl-jemalloc:3.3.1=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.lwjgl:lwjgl-openal:3.3.1=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.lwjgl:lwjgl-opengl:3.3.1=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.lwjgl:lwjgl-stb:3.3.1=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.lwjgl:lwjgl-tinyfd:3.3.1=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.lwjgl:lwjgl:3.3.1=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.openjdk.nashorn:nashorn-core:15.4=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.opentest4j:opentest4j:1.3.0=testCompileClasspath,testRuntimeClasspath
-org.ow2.asm:asm-analysis:9.9.1=_compileJava_1,compileClasspath,minecraft,modules_userdev_resolver,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.ow2.asm:asm-commons:9.9.1=_compileJava_1,compileClasspath,minecraft,modules_userdev_resolver,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.ow2.asm:asm-tree:9.9.1=_compileJava_1,compileClasspath,minecraft,modules_userdev_resolver,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.ow2.asm:asm-util:9.9.1=_compileJava_1,compileClasspath,minecraft,modules_userdev_resolver,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.ow2.asm:asm:9.9.1=_compileJava_1,compileClasspath,minecraft,modules_userdev_resolver,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.slf4j:slf4j-api:2.0.1=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.slf4j:slf4j-simple:1.7.30=_compileJava_1,minecraft,runtimeClasspath,testRuntimeClasspath
-org.spigotmc:spigot-api:1.20.1-R0.1-20230921.163938-66=compileClasspath,embed,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.spongepowered:configurate-core:3.6.1=runtimeClasspath,testRuntimeClasspath
-org.spongepowered:configurate-yaml:3.6.1=runtimeClasspath,testRuntimeClasspath
-org.spongepowered:mixin:0.8.5=_compileJava_1,compileClasspath,minecraft,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.spongepowered:mixin:0.8.7=annotationProcessor
-org.yaml:snakeyaml:2.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-empty=__obfuscated,arclight,jarJar,minecraftEmbed,minecraftLibrary,testAnnotationProcessor
diff --git a/arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/entity/monster/CreeperEntityBridge.java b/arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/entity/monster/CreeperEntityBridge.java
deleted file mode 100644
index 68e65c684..000000000
--- a/arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/entity/monster/CreeperEntityBridge.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package io.izzel.arclight.common.bridge.core.entity.monster;
-
-import io.izzel.arclight.common.bridge.core.entity.MobEntityBridge;
-
-public interface CreeperEntityBridge extends MobEntityBridge {
- void bridge$setPowered(boolean power);
-}
diff --git a/arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/entity/passive/AnimalEntityBridge.java b/arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/entity/passive/AnimalEntityBridge.java
deleted file mode 100644
index 45a99e150..000000000
--- a/arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/entity/passive/AnimalEntityBridge.java
+++ /dev/null
@@ -1,8 +0,0 @@
-package io.izzel.arclight.common.bridge.core.entity.passive;
-
-import io.izzel.arclight.common.bridge.core.entity.MobEntityBridge;
-import net.minecraft.world.item.ItemStack;
-
-public interface AnimalEntityBridge extends MobEntityBridge {
- ItemStack bridge$getBreedItem();
-}
diff --git a/arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/entity/projectile/ArrowEntityBridge.java b/arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/entity/projectile/ArrowEntityBridge.java
deleted file mode 100644
index c5378c1e9..000000000
--- a/arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/entity/projectile/ArrowEntityBridge.java
+++ /dev/null
@@ -1,9 +0,0 @@
-package io.izzel.arclight.common.bridge.core.entity.projectile;
-
-import io.izzel.arclight.common.bridge.core.entity.EntityBridge;
-
-public interface ArrowEntityBridge extends EntityBridge {
- void bridge$refreshEffects();
-
- boolean bridge$isTipped();
-}
diff --git a/arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/entity/projectile/DamagingProjectileEntityBridge.java b/arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/entity/projectile/DamagingProjectileEntityBridge.java
deleted file mode 100644
index 656e0515c..000000000
--- a/arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/entity/projectile/DamagingProjectileEntityBridge.java
+++ /dev/null
@@ -1,7 +0,0 @@
-package io.izzel.arclight.common.bridge.core.entity.projectile;
-
-import io.izzel.arclight.common.bridge.core.entity.EntityBridge;
-
-public interface DamagingProjectileEntityBridge extends EntityBridge {
- void bridge$setBukkitYield(float yield);
-}
diff --git a/arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/network/play/TimestampedPacket.java b/arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/network/play/TimestampedPacket.java
deleted file mode 100644
index ad7175c25..000000000
--- a/arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/network/play/TimestampedPacket.java
+++ /dev/null
@@ -1,5 +0,0 @@
-package io.izzel.arclight.common.bridge.core.network.play;
-
-public interface TimestampedPacket {
- long bridge$timestamp();
-}
diff --git a/arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/tileentity/SignTileEntityBridge.java b/arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/tileentity/SignTileEntityBridge.java
deleted file mode 100644
index 9b40d25cf..000000000
--- a/arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/tileentity/SignTileEntityBridge.java
+++ /dev/null
@@ -1,3 +0,0 @@
-package io.izzel.arclight.common.bridge.core.tileentity;
-
-public interface SignTileEntityBridge {}
diff --git a/arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/world/storage/loot/LootTableBridge.java b/arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/world/storage/loot/LootTableBridge.java
deleted file mode 100644
index 04e988c0f..000000000
--- a/arclight-common/src/main/java/io/izzel/arclight/common/bridge/core/world/storage/loot/LootTableBridge.java
+++ /dev/null
@@ -1,3 +0,0 @@
-package io.izzel.arclight.common.bridge.core.world.storage.loot;
-
-public interface LootTableBridge {}
diff --git a/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/server/level/ServerChunkCache_MainThreadExecutorMixin.java b/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/server/level/ServerChunkCache_MainThreadExecutorMixin.java
deleted file mode 100644
index d42284855..000000000
--- a/arclight-common/src/main/java/io/izzel/arclight/common/mixin/core/server/level/ServerChunkCache_MainThreadExecutorMixin.java
+++ /dev/null
@@ -1,49 +0,0 @@
-package io.izzel.arclight.common.mixin.core.server.level;
-
-import io.izzel.arclight.common.bridge.core.server.MinecraftServerBridge;
-import io.izzel.arclight.common.bridge.core.world.server.ChunkMapBridge;
-import io.izzel.arclight.common.bridge.core.world.server.ServerChunkProviderBridge;
-import io.izzel.arclight.common.mod.server.ArclightServer;
-import net.minecraft.server.level.ServerChunkCache;
-import net.minecraft.util.thread.BlockableEventLoop;
-import org.spongepowered.asm.mixin.Final;
-import org.spongepowered.asm.mixin.Mixin;
-import org.spongepowered.asm.mixin.Overwrite;
-import org.spongepowered.asm.mixin.Shadow;
-
-@Mixin(targets = "net.minecraft.server.level.ServerChunkCache$MainThreadExecutor")
-public abstract class ServerChunkCache_MainThreadExecutorMixin
- extends BlockableEventLoop {
-
- // @formatter:off
- @Shadow(
- aliases = {"this$0", "f_8491_"},
- remap = false)
- @Final
- private ServerChunkCache outer;
-
- // @formatter:on
-
- protected ServerChunkCache_MainThreadExecutorMixin(String nameIn) {
- super(nameIn);
- }
-
- /**
- * @author IzzelAliz
- * @reason
- */
- @Overwrite
- public boolean pollTask() {
- try {
- if (((ServerChunkProviderBridge) outer).bridge$tickDistanceManager()) {
- return true;
- } else {
- ((ServerChunkProviderBridge) outer).bridge$getLightManager().tryScheduleUpdate();
- return super.pollTask();
- }
- } finally {
- ((ChunkMapBridge) outer.chunkMap).bridge$getCallbackExecutor().run();
- ((MinecraftServerBridge) ArclightServer.getMinecraftServer()).bridge$drainQueuedTasks();
- }
- }
-}
diff --git a/arclight-forge/.gitignore b/arclight-forge/.gitignore
deleted file mode 100644
index c9e71fac5..000000000
--- a/arclight-forge/.gitignore
+++ /dev/null
@@ -1,6 +0,0 @@
-/build/
-/bin/
-/.project
-/.classpath
-/.settings/
-run_prod/
diff --git a/arclight-forge/build.gradle b/arclight-forge/build.gradle
deleted file mode 100644
index 737bad027..000000000
--- a/arclight-forge/build.gradle
+++ /dev/null
@@ -1,76 +0,0 @@
-apply plugin: 'luminara.java-conventions'
-apply plugin: 'idea'
-
-base.archivesName = "luminara-forge-${minecraftVersion}"
-
-configurations {
- commonReobfuscated {
- canBeConsumed = false
- canBeResolved = true
- }
-}
-
-dependencies {
- commonReobfuscated project(path: ':arclight-common', configuration: 'reobfuscatedElements')
- testImplementation platform("org.junit:junit-bom:${libs.versions.junit.get()}")
- testImplementation 'org.junit.jupiter:junit-jupiter'
- testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
-}
-
-// The common runtime is only usable after ForgeGradle has reobfuscated it, so the task
-// that produces the mod JAR has to depend on that step explicitly.
-compileJava {
- options.compilerArgs << '-XDignore.symbol.file' << '-XDenableSunApiLintControl'
-}
-
-/*
- * The published artifact is a plain Forge mod JAR. Every entry that used to live in the
- * nested common.jar is flattened into the root so Forge finds META-INF/mods.toml and the
- * mixin configurations by scanning the mod JAR itself.
- *
- * The reobfuscated common runtime already carries the mixin configurations and the access
- * transformer, so only the resources ForgeGradle generates afterwards are taken from the
- * module output.
- *
- * Two leftovers of the launcher are dropped instead of shipped:
- * - installer.json described the runtime Forge installer, which no longer exists;
- * - ChestBlock$DoubleInventory is a Spigot patch of a Minecraft class that no code in
- * this repository reads. Shipping it would make the mod JAR declare
- * net.minecraft.world.level.block, which the minecraft module already owns, and Java's
- * module resolver refuses to build the layer because of the split package.
- */
-def modResources = project(':arclight-common').layout.buildDirectory.dir('resources/main')
-def generatedRefmap = project(':arclight-common').layout.buildDirectory.file('tmp/compileJava/mixins.arclight.refmap.json')
-
-tasks.named('jar') {
- // The common runtime is only usable after ForgeGradle has reobfuscated it, and the
- // annotation processor output is the authoritative refmap: the copy MixinGradle puts
- // in the common JAR can predate a mapping change, which then makes Mixin resolve
- // @Shadow members by their unmapped names at runtime.
- dependsOn(project(':arclight-common').tasks.matching { it.name == 'reobfJar' })
- dependsOn(project(':arclight-common').tasks.named('compileJava'))
- from(generatedRefmap) {
- rename { 'mixins.arclight.refmap.json' }
- }
-}
-
-jar {
- manifest.attributes 'Automatic-Module-Name': 'luminara.forge'
- manifest.attributes 'MixinConnector': 'io.izzel.arclight.common.mod.ArclightConnector'
- from(configurations.commonReobfuscated.collect { it.isDirectory() ? it : zipTree(it) }) {
- exclude 'META-INF/MANIFEST.MF'
- exclude 'META-INF/*.SF'
- exclude 'META-INF/*.DSA'
- exclude 'META-INF/*.RSA'
- exclude 'META-INF/mods.toml'
- exclude 'META-INF/installer.json'
- exclude 'META-INF/services/**'
- exclude 'net/minecraft/**'
- exclude 'LICENSE.txt'
- exclude 'module-info.class'
- }
- from(modResources) {
- exclude 'io/**'
- }
- duplicatesStrategy = DuplicatesStrategy.EXCLUDE
-}
diff --git a/arclight-forge/gradle.lockfile b/arclight-forge/gradle.lockfile
deleted file mode 100644
index 7ca1185fe..000000000
--- a/arclight-forge/gradle.lockfile
+++ /dev/null
@@ -1,83 +0,0 @@
-# This is a Gradle generated file for dependency locking.
-# Manual edits can break the build and are not advised.
-# This file is expected to be part of source control.
-com.electronwill.night-config:core:3.6.4=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.electronwill.night-config:toml:3.6.4=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.google.code.findbugs:jsr305:3.0.2=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.google.code.gson:gson:2.10.1=compileClasspath,gson,installer,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.google.errorprone:error_prone_annotations:2.11.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.google.guava:failureaccess:1.0.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.google.guava:guava:31.1-jre=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.google.j2objc:j2objc-annotations:1.3=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.googlecode.json-simple:json-simple:1.1.1=installer
-com.ibm.icu:icu4j:61.1=runtimeClasspath,testRuntimeClasspath
-com.machinezoo.noexception:noexception:1.7.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.mojang:logging:1.1.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-com.mysql:mysql-connector-j:8.0.33=installer
-com.typesafe:config:1.3.1=installer
-commons-lang:commons-lang:2.6=compileClasspath,embed,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-cpw.mods:bootstraplauncher:1.1.2=testCompileClasspath,testRuntimeClasspath
-cpw.mods:modlauncher:10.0.9=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-cpw.mods:securejarhandler:2.1.10=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-io.izzel.arclight:arclight-api:1.5.4=compileClasspath,embed,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-io.izzel.arclight:mixin-tools:1.0.1=compileClasspath,embed,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-io.izzel:tools:1.3.0=compileClasspath,embed,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-javax.inject:javax.inject:1=installer
-jline:jline:2.12.1=installer
-net.md-5:SpecialSource:1.11.0=installer
-net.minecraftforge:JarJarMetadata:0.3.19=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraftforge:JarJarSelector:0.3.19=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraftforge:accesstransformers:8.0.4=runtimeClasspath,testRuntimeClasspath
-net.minecraftforge:coremods:5.2.4=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraftforge:fmlloader:1.20.1-47.4.22=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraftforge:forgespi:7.0.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraftforge:mergetool:1.1.5=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-net.minecraftforge:srgutils:0.4.11=runtimeClasspath,testRuntimeClasspath
-net.minecrell:terminalconsoleappender:1.2.0=runtimeClasspath,testRuntimeClasspath
-net.sf.jopt-simple:jopt-simple:5.0.4=runtimeClasspath,testRuntimeClasspath
-org.abego.treelayout:org.abego.treelayout.core:1.0.3=runtimeClasspath,testRuntimeClasspath
-org.antlr:ST4:4.3=runtimeClasspath,testRuntimeClasspath
-org.antlr:antlr-runtime:3.5.2=runtimeClasspath,testRuntimeClasspath
-org.antlr:antlr4-runtime:4.9.1=runtimeClasspath,testRuntimeClasspath
-org.antlr:antlr4:4.9.1=runtimeClasspath,testRuntimeClasspath
-org.apache.commons:commons-lang3:3.12.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.apache.logging.log4j:log4j-api:2.19.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.apache.logging.log4j:log4j-core:2.19.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.apache.logging.log4j:log4j-jul:2.19.0=compileClasspath,installer,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.apache.logging.log4j:log4j-slf4j2-impl:2.19.0=runtimeClasspath,testRuntimeClasspath
-org.apache.maven:maven-artifact:3.8.5=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.apiguardian:apiguardian-api:1.1.2=testCompileClasspath
-org.checkerframework:checker-qual:3.12.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.codehaus.plexus:plexus-utils:3.3.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.fusesource.jansi:jansi:1.18=installer
-org.glassfish:javax.json:1.0.4=runtimeClasspath,testRuntimeClasspath
-org.jetbrains:annotations:23.0.0=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.jline:jline-reader:3.12.1=runtimeClasspath,testRuntimeClasspath
-org.jline:jline-terminal-jansi:3.12.1=installer
-org.jline:jline-terminal:3.12.1=runtimeClasspath,testRuntimeClasspath
-org.junit.jupiter:junit-jupiter-api:5.14.4=testCompileClasspath,testRuntimeClasspath
-org.junit.jupiter:junit-jupiter-engine:5.14.4=testRuntimeClasspath
-org.junit.jupiter:junit-jupiter-params:5.14.4=testCompileClasspath,testRuntimeClasspath
-org.junit.jupiter:junit-jupiter:5.14.4=testCompileClasspath,testRuntimeClasspath
-org.junit.platform:junit-platform-commons:1.14.4=testCompileClasspath,testRuntimeClasspath
-org.junit.platform:junit-platform-engine:1.14.4=testRuntimeClasspath
-org.junit.platform:junit-platform-launcher:1.14.4=testRuntimeClasspath
-org.junit:junit-bom:5.14.4=testCompileClasspath,testRuntimeClasspath
-org.openjdk.nashorn:nashorn-core:15.4=runtimeClasspath,testRuntimeClasspath
-org.opentest4j:opentest4j:1.3.0=testCompileClasspath,testRuntimeClasspath
-org.ow2.asm:asm-analysis:9.3=runtimeClasspath,testRuntimeClasspath
-org.ow2.asm:asm-commons:9.9.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.ow2.asm:asm-tree:9.9.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.ow2.asm:asm-util:9.3=runtimeClasspath,testRuntimeClasspath
-org.ow2.asm:asm:9.9.1=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.slf4j:slf4j-api:1.8.0-beta4=compileClasspath,testCompileClasspath
-org.slf4j:slf4j-api:2.0.0=runtimeClasspath,testRuntimeClasspath
-org.slf4j:slf4j-simple:1.7.30=runtimeClasspath,testRuntimeClasspath
-org.spongepowered:configurate-core:3.6.1=installer
-org.spongepowered:configurate-hocon:3.6.1=installer
-org.spongepowered:configurate-yaml:3.6.1=installer
-org.spongepowered:mixin:0.8.5=compileClasspath,runtimeClasspath,testCompileClasspath,testRuntimeClasspath
-org.xerial:sqlite-jdbc:3.53.2.1=installer
-org.yaml:snakeyaml:2.0=installer
-empty=annotationProcessor,applaunchAnnotationProcessor,applaunchCompileClasspath,applaunchRuntimeClasspath,commonReobfuscated,testAnnotationProcessor
diff --git a/build.gradle b/build.gradle
index f8ce07dc2..4258f00ee 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,224 +1,4 @@
-import groovy.json.JsonSlurper
-import java.security.MessageDigest
-import org.gradle.api.artifacts.dsl.LockMode
-import io.izzel.arclight.gradle.tasks.SmokeServerTask
-import io.izzel.arclight.gradle.tasks.VerifyForgeModTask
-import io.izzel.arclight.gradle.tasks.VerifyReproducibleBuildTask
-
-def resolveForgeVersion = {
- def override = providers.gradleProperty('forgeVersion').orNull
- if (override != null && !override.isBlank()) return override
-
- def minecraftVersion = libs.versions.minecraft.get()
- def connection = URI.create('https://files.minecraftforge.net/net/minecraftforge/forge/promotions_slim.json').toURL().openConnection()
- connection.connectTimeout = 10000
- connection.readTimeout = 10000
- def promotions
- connection.inputStream.withCloseable { input ->
- promotions = new JsonSlurper().parse(input)
- }
- def latest = promotions.promos["${minecraftVersion}-latest"]
- if (!(latest instanceof String) || !(latest ==~ /\d+(?:\.\d+)+/)) {
- throw new GradleException("Forge promotions has no valid latest version for Minecraft ${minecraftVersion}")
- }
- return latest
-}
-
-def resolvedForgeVersion = resolveForgeVersion()
-
-allprojects {
- group 'io.izzel.luminara'
- version libs.versions.project.get()
-
- def getGitHash = { ->
- def providedHash = providers.gradleProperty('luminaraGitHash').orNull
- if (providedHash != null) {
- if (!(providedHash ==~ /[0-9a-f]{7,40}/)) {
- throw new GradleException('luminaraGitHash must be a 7-40 character lowercase hexadecimal commit hash')
- }
- return providedHash
- }
- def stdout = new ByteArrayOutputStream()
- try {
- exec {
- commandLine 'git', 'rev-parse', '--short', 'HEAD'
- standardOutput = stdout
- }
- } catch (Exception ignored) {
- return 'unknown'
- }
- return stdout.toString().trim()
- }
-
- ext {
- agpVersion = libs.versions.arclight.gradle.plugin.get()
- minecraftVersion = libs.versions.minecraft.get()
- forgeVersion = resolvedForgeVersion
- apiVersion = libs.versions.arclight.api.get()
- toolsVersion = libs.versions.tools.get()
- mixinVersion = libs.versions.mixin.runtime.get()
- versionName = 'trials'
- gitHash = getGitHash()
- }
-
- dependencyLocking {
- // ForgeGradle's Minecraft graph is OS-specific (for example, Netty epoll is Linux-only).
- // Keep locked versions as constraints without requiring every platform's optional modules.
- lockMode = LockMode.LENIENT
- lockAllConfigurations()
- }
-
- configurations.configureEach {
- if (name.startsWith('art_rev_')) {
- resolutionStrategy.deactivateDependencyLocking()
- }
- }
-}
-
-def modJarName = "luminara-forge-${libs.versions.minecraft.get()}-${libs.versions.project.get()}.jar"
-def modOutputJar = layout.buildDirectory.file("distributions/${modJarName}")
-def modChecksum = layout.buildDirectory.file("distributions/${modJarName}.sha256")
-def modInput = configurations.create('modInput') {
- canBeConsumed = false
- canBeResolved = true
- transitive = false
-}
-dependencies.add('modInput', dependencies.project(path: ':arclight-forge', configuration: 'archives'))
-
-def assembleForgeMod = tasks.register('assembleForgeMod') {
- group = 'build'
- description = 'Assembles the standard Luminara Forge mod JAR and its checksum.'
- inputs.files(modInput)
- outputs.files(modOutputJar, modChecksum)
-
- doLast {
- if (project.ext.gitHash == 'unknown') {
- throw new GradleException('assembleForgeMod requires Git commit metadata')
- }
- copy {
- from(modInput.singleFile)
- into(modOutputJar.get().asFile.parentFile)
- rename { modJarName }
- }
- def jarFile = modOutputJar.get().asFile
- MessageDigest digest = MessageDigest.getInstance('SHA-256')
- jarFile.eachByte(8192) { bytes, size -> digest.update(bytes, 0, size) }
- modChecksum.get().asFile.text = digest.digest().collect { String.format('%02x', it) }.join() + " ${modJarName}\n"
- }
-}
-
-tasks.register('verifyForgeModDistribution', VerifyForgeModTask) {
- group = 'verification'
- description = 'Validates that the artifact is a standard Forge mod JAR with no legacy launcher entries.'
- dependsOn(assembleForgeMod)
- modJar.set(modOutputJar)
- modId.set('luminara')
- minecraftVersion.set(libs.versions.minecraft.get())
- forgeVersion.set(project.ext.forgeVersion)
- expectedVersionPrefix.set(libs.versions.project.get())
- requiredEntries.set([
- 'META-INF/mods.toml',
- 'META-INF/accesstransformer.cfg',
- 'META-INF/luminara-version.properties',
- 'META-INF/MANIFEST.MF',
- 'mixins.arclight.refmap.json',
- 'pack.mcmeta',
- 'io/izzel/arclight/common/mod/ArclightMod.class',
- 'io/izzel/arclight/common/mod/ArclightConnector.class',
- 'io/izzel/arclight/common/mixin/core/commands/CommandNodeMixin.class',
- 'io/izzel/arclight/common/mixin/bukkit/enumvalues/MaterialEnumMixin.class'
- ])
- mixinConfigurations.set([
- 'mixins.arclight.core.json',
- 'mixins.arclight.bukkit.json',
- 'mixins.arclight.forge.json',
- 'mixins.arclight.compat.json',
- 'mixins.arclight.impl.forge.optimization.json'
- ])
- expectedManifestAttributes.set([
- 'MixinConnector': 'io.izzel.arclight.common.mod.ArclightConnector'
- ])
-}
-
-def forgeInstallerFile = project(':arclight-common').layout.buildDirectory.file(
- "arclight_cache/forge-${project.ext.minecraftVersion}-${project.ext.forgeVersion}-installer.jar")
-
-def smokeServer = tasks.register('smokeServer', SmokeServerTask) {
- group = 'verification'
- outputs.upToDateWhen { false }
- description = 'Installs a clean Forge dedicated server, runs the mod with the smoke fixtures, and asserts on the log.'
- dependsOn(assembleForgeMod, ':arclight-common:smokePluginJar', ':arclight-common:smokeModJar',
- ':arclight-common:downloadInstaller')
- modJar.set(modOutputJar)
- pluginJar.set(project(':arclight-common').tasks.named('smokePluginJar', Jar).flatMap { it.archiveFile })
- fixtureModJar.set(project(':arclight-common').tasks.named('smokeModJar', Jar).flatMap { it.archiveFile })
- forgeInstallerJar.set(forgeInstallerFile)
- forgeCoordinates.set("${project.ext.minecraftVersion}-${project.ext.forgeVersion}")
- fixtureDirectory.set(layout.buildDirectory.dir('smoke-server'))
- startupTimeoutSeconds.set(900)
- expectedOutput.set([
- 'Done (',
- 'For help, type "help"',
- 'LUMINARA_SMOKE_MOD_ENABLED',
- 'LUMINARA_SMOKE_PLUGIN_ENABLED',
- 'LUMINARA_SMOKE_BUKKIT_API_OK',
- 'LUMINARA_SMOKE_JUL_BRIDGE',
- 'LUMINARA_SMOKE_SERVER_LOGGER_BRIDGE',
- 'LUMINARA_SMOKE_HEX_COLOR',
- 'LUMINARA_SMOKE_HEX_MALFORMED',
- 'LUMINARA_SMOKE_AMP_HEX_COLOR',
- 'LUMINARA_SMOKE_AMP_LEGACY_COLOR',
- 'LUMINARA_SMOKE_SHUTDOWN_HANG_READY',
- 'LUMINARA_SMOKE_ENUM_DEFINALIZED Material=Material',
- 'LUMINARA_SMOKE_ENUM_DEFINALIZED SpawnCategory=SpawnCategory',
- 'LUMINARA_SMOKE_ASYNC_GUARD_OK',
- 'LUMINARA_SMOKE_COMMAND_OK',
- 'Luminara Version: ',
- project.version.toString(),
- project.ext.gitHash,
- 'Minecraft / Forge / Java: ',
- "${project.ext.minecraftVersion} / ${project.ext.forgeVersion} / ${libs.versions.java.get()}",
- 'CraftBukkit Package: ',
- 'v1_20_R1'
- ])
-}
-
-tasks.register('smokeNativeForgeServer') {
- group = 'verification'
- description = 'Alias for smokeServer, the native Forge dedicated-server smoke test.'
- dependsOn(smokeServer)
-}
-
-tasks.register('runNativeForgeServer') {
- group = 'verification'
- description = 'Alias for smokeServer that keeps the fixture server directory for manual inspection.'
- dependsOn(smokeServer)
-}
-
-// Every other gate is a static inspection of the artifact; this one actually boots Forge
-// with the mod in mods/ and a Bukkit plugin in plugins/. The root project has no check
-// task of its own, so the full gate is exposed as verify and wired into the module checks.
-tasks.register('verify') {
- group = 'verification'
- description = 'Runs every module check plus the mod JAR verification and the native Forge smoke test.'
- dependsOn(subprojects.collect { it.tasks.matching { task -> task.name == 'check' } })
- dependsOn(tasks.named('verifyForgeModDistribution'), smokeServer)
-}
-
-def reproducibleWorkspace = new File(System.getProperty('java.io.tmpdir'),
- "luminara-reproducible-${Integer.toUnsignedString(rootDir.absolutePath.hashCode())}")
-
-tasks.register('verifyReproducibleForgeMod', VerifyReproducibleBuildTask) {
- group = 'verification'
- description = 'Builds the tracked source twice and compares the Forge mod JAR entry by entry.'
- sourceDirectory.set(layout.projectDirectory)
- workspaceDirectory.set(reproducibleWorkspace)
- distributionRelativePath.set("build/distributions/${modJarName}")
- // Spigot's BuildTools remapper emits two constant pool class entries in a run-dependent
- // order for this one class, so it differs by four bytes between builds. Every other
- // entry still has to match byte for byte, and a real change to this class changes many
- // more bytes than the allowance.
- knownVariance.set([
- 'org/bukkit/craftbukkit/v/scoreboard/CraftScoreboard.class': 8
- ])
-}
+plugins {
+ id 'fabric-loom' version '1.9-SNAPSHOT' apply(false)
+ id 'net.neoforged.moddev.legacyforge' version '2.0.77' apply(false)
+}
\ No newline at end of file
diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle
index 66085be2b..678405245 100644
--- a/buildSrc/build.gradle
+++ b/buildSrc/build.gradle
@@ -1,27 +1,3 @@
plugins {
id 'groovy-gradle-plugin'
}
-
-repositories {
- gradlePluginPortal()
- mavenCentral()
-}
-
-dependencies {
- implementation 'com.google.code.gson:gson:2.10.1'
- implementation 'org.ow2.asm:asm-tree:9.9.1'
-}
-
-java {
- toolchain {
- languageVersion = JavaLanguageVersion.of(17)
- }
-}
-
-tasks.withType(JavaCompile).configureEach {
- options.release.set(17)
-}
-
-dependencyLocking {
- lockAllConfigurations()
-}
diff --git a/buildSrc/src/main/groovy/luminara.java-conventions.gradle b/buildSrc/src/main/groovy/luminara.java-conventions.gradle
deleted file mode 100644
index 157382ae4..000000000
--- a/buildSrc/src/main/groovy/luminara.java-conventions.gradle
+++ /dev/null
@@ -1,43 +0,0 @@
-import org.gradle.api.artifacts.VersionCatalogsExtension
-import org.gradle.api.tasks.bundling.AbstractArchiveTask
-import org.gradle.api.tasks.compile.JavaCompile
-
-plugins {
- id 'java'
-}
-
-def catalog = project.rootProject.extensions.getByType(VersionCatalogsExtension).named('libs')
-def javaRelease = catalog.findVersion('java').get().requiredVersion.toInteger()
-def minecraftVersion = catalog.findVersion('minecraft').get().requiredVersion
-
-def gitCommit = providers.provider {
- rootProject.ext.has('gitHash') ? rootProject.ext.gitHash.toString() : 'unknown'
-}
-
-java {
- toolchain {
- languageVersion = JavaLanguageVersion.of(javaRelease)
- }
-}
-
-tasks.withType(JavaCompile).configureEach {
- options.encoding = 'UTF-8'
- options.release.set(javaRelease)
-}
-
-tasks.withType(Test).configureEach {
- useJUnitPlatform()
-}
-
-tasks.withType(AbstractArchiveTask).configureEach {
- preserveFileTimestamps = false
- reproducibleFileOrder = true
-}
-
-tasks.withType(Jar).configureEach {
- manifest.attributes(
- 'Implementation-Title': 'Luminara',
- 'Implementation-Version': "luminara-${minecraftVersion}-${project.version}-${gitCommit.get()}",
- 'Implementation-Vendor': 'Luminara Team'
- )
-}
diff --git a/buildSrc/src/main/groovy/multiloader-common.gradle b/buildSrc/src/main/groovy/multiloader-common.gradle
new file mode 100644
index 000000000..bac051751
--- /dev/null
+++ b/buildSrc/src/main/groovy/multiloader-common.gradle
@@ -0,0 +1,136 @@
+plugins {
+ id 'java-library'
+ id 'maven-publish'
+}
+
+base {
+ archivesName = "${mod_id}-${project.name}-${minecraft_version}"
+}
+
+java {
+ toolchain.languageVersion = JavaLanguageVersion.of(java_version)
+ withSourcesJar()
+ withJavadocJar()
+}
+
+repositories {
+ mavenCentral()
+ // https://docs.gradle.org/current/userguide/declaring_repositories.html#declaring_content_exclusively_found_in_one_repository
+ exclusiveContent {
+ forRepository {
+ maven {
+ name = 'Sponge'
+ url = 'https://repo.spongepowered.org/repository/maven-public'
+ }
+ }
+ filter { includeGroupAndSubgroups('org.spongepowered') }
+ }
+ exclusiveContent {
+ forRepositories(
+ maven {
+ name = 'ParchmentMC'
+ url = 'https://maven.parchmentmc.org/'
+ },
+ maven {
+ name = "NeoForge"
+ url = 'https://maven.neoforged.net/releases'
+ }
+ )
+ filter { includeGroup('org.parchmentmc.data') }
+ }
+ maven {
+ name = 'BlameJared'
+ url = 'https://maven.blamejared.com'
+ }
+}
+
+// Declare capabilities on the outgoing configurations.
+// Read more about capabilities here: https://docs.gradle.org/current/userguide/component_capabilities.html#sec:declaring-additional-capabilities-for-a-local-component
+['apiElements', 'runtimeElements', 'sourcesElements', 'javadocElements'].each { variant ->
+ configurations."$variant".outgoing {
+ capability("$group:${project.name}:$version")
+ capability("$group:${base.archivesName.get()}:$version")
+ capability("$group:$mod_id-${project.name}-${minecraft_version}:$version")
+ capability("$group:$mod_id:$version")
+ }
+ publishing.publications.configureEach {
+ suppressPomMetadataWarningsFor(variant)
+ }
+}
+
+sourcesJar {
+ from(rootProject.file('LICENSE')) {
+ rename { "${it}_${mod_name}" }
+ }
+}
+
+jar {
+ from(rootProject.file('LICENSE')) {
+ rename { "${it}_${mod_name}" }
+ }
+
+ manifest {
+ attributes([
+ 'Specification-Title' : mod_name,
+ 'Specification-Vendor' : mod_author,
+ 'Specification-Version' : project.jar.archiveVersion,
+ 'Implementation-Title' : project.name,
+ 'Implementation-Version': project.jar.archiveVersion,
+ 'Implementation-Vendor' : mod_author,
+ 'Built-On-Minecraft' : minecraft_version
+ ])
+ }
+}
+
+processResources {
+ var expandProps = [
+ 'version' : version,
+ 'group' : project.group, //Else we target the task's group.
+ 'minecraft_version' : minecraft_version,
+ 'minecraft_version_range' : minecraft_version_range,
+ 'fabric_version' : fabric_version,
+ 'fabric_loader_version' : fabric_loader_version,
+ 'mod_name' : mod_name,
+ 'mod_author' : mod_author,
+ 'mod_id' : mod_id,
+ 'license' : license,
+ 'description' : project.description,
+ "forge_version": forge_version,
+ "forge_loader_version_range": forge_loader_version_range,
+ 'credits' : credits,
+ 'java_version' : java_version
+ ]
+
+ var jsonExpandProps = expandProps.collectEntries {
+ key, value -> [(key): value instanceof String ? value.replace("\n", "\\\\n") : value]
+ }
+
+ filesMatching(['META-INF/mods.toml']) {
+ expand expandProps
+ }
+
+ filesMatching(['pack.mcmeta', 'fabric.mod.json', '*.mixins.json']) {
+ expand jsonExpandProps
+ }
+
+ inputs.properties(expandProps)
+}
+
+publishing {
+ publications {
+ register('mavenJava', MavenPublication) {
+ artifactId base.archivesName.get()
+ from components.java
+ }
+ }
+ repositories {
+ maven {
+ url System.getenv('local_maven_url')
+ }
+ }
+}
+
+tasks.withType(Javadoc).configureEach {
+ options.addStringOption('Xdoclint:none', '-quiet')
+ options.tags = ['author:a:Author', 'reason:a:Reason']
+}
diff --git a/buildSrc/src/main/groovy/multiloader-loader.gradle b/buildSrc/src/main/groovy/multiloader-loader.gradle
new file mode 100644
index 000000000..92e23251e
--- /dev/null
+++ b/buildSrc/src/main/groovy/multiloader-loader.gradle
@@ -0,0 +1,44 @@
+plugins {
+ id 'multiloader-common'
+}
+
+configurations {
+ commonJava{
+ canBeResolved = true
+ }
+ commonResources{
+ canBeResolved = true
+ }
+}
+
+dependencies {
+ compileOnly(project(':common')) {
+ capabilities {
+ requireCapability "$group:$mod_id"
+ }
+ }
+ commonJava project(path: ':common', configuration: 'commonJava')
+ commonResources project(path: ':common', configuration: 'commonResources')
+}
+
+tasks.named('compileJava', JavaCompile) {
+ dependsOn(configurations.commonJava)
+ source(configurations.commonJava)
+}
+
+processResources {
+ dependsOn(configurations.commonResources)
+ from(configurations.commonResources)
+}
+
+tasks.named('javadoc', Javadoc).configure {
+ dependsOn(configurations.commonJava)
+ source(configurations.commonJava)
+}
+
+tasks.named('sourcesJar', Jar) {
+ dependsOn(configurations.commonJava)
+ from(configurations.commonJava)
+ dependsOn(configurations.commonResources)
+ from(configurations.commonResources)
+}
diff --git a/buildSrc/src/main/java/io/izzel/arclight/gradle/tasks/BundleJarJarTask.java b/buildSrc/src/main/java/io/izzel/arclight/gradle/tasks/BundleJarJarTask.java
deleted file mode 100644
index 26e8912e7..000000000
--- a/buildSrc/src/main/java/io/izzel/arclight/gradle/tasks/BundleJarJarTask.java
+++ /dev/null
@@ -1,105 +0,0 @@
-package io.izzel.arclight.gradle.tasks;
-
-import com.google.gson.Gson;
-import com.google.gson.GsonBuilder;
-import com.google.gson.JsonArray;
-import com.google.gson.JsonObject;
-import java.io.IOException;
-import java.nio.charset.StandardCharsets;
-import java.nio.file.Files;
-import java.nio.file.Path;
-import java.nio.file.StandardCopyOption;
-import java.util.Comparator;
-import java.util.LinkedHashMap;
-import java.util.Map;
-import org.gradle.api.DefaultTask;
-import org.gradle.api.file.ConfigurableFileCollection;
-import org.gradle.api.file.RegularFileProperty;
-import org.gradle.api.provider.MapProperty;
-import org.gradle.api.tasks.Input;
-import org.gradle.api.tasks.InputFiles;
-import org.gradle.api.tasks.OutputFile;
-import org.gradle.api.tasks.PathSensitive;
-import org.gradle.api.tasks.PathSensitivity;
-import org.gradle.api.tasks.TaskAction;
-
-/**
- * Collects the third party libraries the mod needs at run time into a JarJar payload and writes the
- * {@code META-INF/jarjar/metadata.json} Forge reads to load them.
- *
- * Merging those libraries into the mod JAR instead does not work on the module path: the mod JAR
- * becomes an automatic module that exports every package it holds, so a bundled copy of a library
- * Forge already provides makes Java refuse to build the game layer with a split-package error.
- * JarJar keeps each library as its own module.
- */
-public abstract class BundleJarJarTask extends DefaultTask {
-
- private static final String JARJAR_DIRECTORY = "META-INF/jarjar";
-
- @InputFiles
- @PathSensitive(PathSensitivity.NAME_ONLY)
- public abstract ConfigurableFileCollection getLibraries();
-
- /** Maps the file name of each library to the {@code group:artifact:version} it provides. */
- @Input
- public abstract MapProperty getCoordinates();
-
- @OutputFile
- public abstract RegularFileProperty getMetadataFile();
-
- @TaskAction
- public void bundle() throws IOException {
- Path outputDirectory = getMetadataFile().get().getAsFile().toPath().getParent();
- Files.createDirectories(outputDirectory);
-
- Map byFileName = new LinkedHashMap<>();
- var libraries =
- getLibraries().getFiles().stream()
- .map(java.io.File::toPath)
- .sorted(Comparator.comparing(path -> path.getFileName().toString()))
- .toList();
- for (Path library : libraries) {
- String fileName = library.getFileName().toString();
- Files.copy(library, outputDirectory.resolve(fileName), StandardCopyOption.REPLACE_EXISTING);
- byFileName.put(fileName, coordinateOf(fileName));
- }
-
- JsonArray jars = new JsonArray();
- byFileName.forEach(
- (fileName, coordinate) -> {
- String[] parts = coordinate.split(":");
- JsonObject identifier = new JsonObject();
- identifier.addProperty("group", parts[0]);
- identifier.addProperty("artifact", parts[1]);
- JsonObject version = new JsonObject();
- version.addProperty("range", "[" + parts[2] + ",)");
- version.addProperty("artifactVersion", parts[2]);
- JsonObject jar = new JsonObject();
- jar.add("identifier", identifier);
- jar.add("version", version);
- jar.addProperty("path", JARJAR_DIRECTORY + "/" + fileName);
- jar.addProperty("isObfuscated", false);
- jars.add(jar);
- });
-
- JsonObject metadata = new JsonObject();
- metadata.add("jars", jars);
- Gson gson = new GsonBuilder().setPrettyPrinting().create();
- Files.writeString(
- getMetadataFile().get().getAsFile().toPath(),
- gson.toJson(metadata) + "\n",
- StandardCharsets.UTF_8);
- }
-
- private String coordinateOf(String fileName) {
- String coordinate = getCoordinates().get().get(fileName);
- if (coordinate == null) {
- throw new IllegalStateException(
- "No Maven coordinate declared for bundled library " + fileName);
- }
- if (coordinate.split(":").length != 3) {
- throw new IllegalStateException("Malformed coordinate for " + fileName + ": " + coordinate);
- }
- return coordinate;
- }
-}
diff --git a/buildSrc/src/main/java/io/izzel/arclight/gradle/tasks/GenerateMappingInventoryTask.java b/buildSrc/src/main/java/io/izzel/arclight/gradle/tasks/GenerateMappingInventoryTask.java
deleted file mode 100644
index a81c977c4..000000000
--- a/buildSrc/src/main/java/io/izzel/arclight/gradle/tasks/GenerateMappingInventoryTask.java
+++ /dev/null
@@ -1,483 +0,0 @@
-package io.izzel.arclight.gradle.tasks;
-
-import com.google.gson.Gson;
-import com.google.gson.GsonBuilder;
-import java.io.File;
-import java.io.IOException;
-import java.nio.charset.StandardCharsets;
-import java.nio.file.Files;
-import java.util.*;
-import java.util.jar.JarFile;
-import org.gradle.api.DefaultTask;
-import org.gradle.api.GradleException;
-import org.gradle.api.file.ConfigurableFileCollection;
-import org.gradle.api.file.RegularFileProperty;
-import org.gradle.api.tasks.*;
-import org.objectweb.asm.ClassReader;
-import org.objectweb.asm.tree.ClassNode;
-import org.objectweb.asm.tree.MethodNode;
-
-public abstract class GenerateMappingInventoryTask extends DefaultTask {
-
- private final ConfigurableFileCollection minecraftClasspath = getProject().files();
- private final ConfigurableFileCollection referenceSources = getProject().files();
- private final ConfigurableFileCollection generatedRemapperInputs = getProject().files();
-
- private static String toBukkitDescriptor(String descriptor, SrgIndex mappings) {
- StringBuilder mapped = new StringBuilder();
- for (int index = 0; index < descriptor.length(); index++) {
- char current = descriptor.charAt(index);
- mapped.append(current);
- if (current != 'L') continue;
- int end = descriptor.indexOf(';', index);
- if (end < 0) return descriptor;
- String className = descriptor.substring(index + 1, end);
- SrgClass mapping = mappings.findClass(className);
- mapped.append(mapping == null ? className : mapping.namedClass).append(';');
- index = end;
- }
- return mapped.toString();
- }
-
- private static Map row(
- String source,
- int line,
- String kind,
- String className,
- String member,
- String descriptor,
- String status) {
- Map row = new LinkedHashMap<>();
- row.put("source", source);
- row.put("line", line);
- row.put("kind", kind);
- row.put("class", className);
- row.put("member", member);
- row.put("descriptor", descriptor);
- row.put("status", status);
- return row;
- }
-
- private static String rowKey(Map row) {
- return (row.get("source") + "\u0000" + String.format("%08d", row.get("line")));
- }
-
- private static String stripComment(String line) {
- int comment = line.indexOf('#');
- return (comment < 0 ? line : line.substring(0, comment)).trim();
- }
-
- private static String memberName(String member) {
- int descriptor = member.indexOf('(');
- return descriptor < 0 ? member : member.substring(0, descriptor);
- }
-
- private static String descriptor(String member) {
- int descriptor = member.indexOf('(');
- return descriptor < 0 ? "" : member.substring(descriptor);
- }
-
- private static boolean hasField(ClassNode node, String name) {
- return (name != null && node.fields.stream().anyMatch(field -> field.name.equals(name)));
- }
-
- private static boolean hasMethod(ClassNode node, String name, String descriptor) {
- if (name == null) return false;
- for (MethodNode method : node.methods) {
- if (method.name.equals(name) && (descriptor.isEmpty() || method.desc.equals(descriptor)))
- return true;
- }
- return false;
- }
-
- private static T firstNonNull(T first, T second) {
- return first != null ? first : second;
- }
-
- @InputFile
- @PathSensitive(PathSensitivity.RELATIVE)
- public abstract RegularFileProperty getForgeAccessTransformer();
-
- @InputFile
- @PathSensitive(PathSensitivity.RELATIVE)
- public abstract RegularFileProperty getForgeAccessLog();
-
- @InputFile
- @PathSensitive(PathSensitivity.RELATIVE)
- public abstract RegularFileProperty getBukkitAccessTransformer();
-
- @InputFile
- @PathSensitive(PathSensitivity.RELATIVE)
- public abstract RegularFileProperty getExtraMappings();
-
- @InputFile
- @PathSensitive(PathSensitivity.RELATIVE)
- public abstract RegularFileProperty getSrgMappings();
-
- @InputFile
- @PathSensitive(PathSensitivity.RELATIVE)
- public abstract RegularFileProperty getBukkitJar();
-
- @InputFile
- @PathSensitive(PathSensitivity.RELATIVE)
- public abstract RegularFileProperty getBukkitPatchJar();
-
- @InputFile
- @PathSensitive(PathSensitivity.RELATIVE)
- public abstract RegularFileProperty getBukkitMappings();
-
- @InputFiles
- @PathSensitive(PathSensitivity.RELATIVE)
- public ConfigurableFileCollection getMinecraftClasspath() {
- return minecraftClasspath;
- }
-
- @InputFiles
- @PathSensitive(PathSensitivity.RELATIVE)
- public ConfigurableFileCollection getReferenceSources() {
- return referenceSources;
- }
-
- @InputFiles
- @PathSensitive(PathSensitivity.RELATIVE)
- public ConfigurableFileCollection getGeneratedRemapperInputs() {
- return generatedRemapperInputs;
- }
-
- @OutputFile
- public abstract RegularFileProperty getOutputFile();
-
- @TaskAction
- public void generate() throws IOException {
- SrgIndex mappings = SrgIndex.read(getSrgMappings().get().getAsFile());
- SrgIndex bukkitMappings = SrgIndex.read(getBukkitMappings().get().getAsFile());
- ClassLookup minecraft = new ClassLookup(minecraftClasspath.getFiles());
- List bukkitRoots = new ArrayList<>(minecraftClasspath.getFiles());
- bukkitRoots.add(getBukkitJar().get().getAsFile());
- bukkitRoots.add(getBukkitPatchJar().get().getAsFile());
- ClassLookup bukkit = new ClassLookup(bukkitRoots);
- List