Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
3c87086
Update libs.versions.toml
crystalWinter666 Oct 23, 2026
06eef09
refactor: adopt MultiLoader project structure
crystalWinter666 Oct 27, 2026
4203468
fix(build): compile common and Forge with LegacyForge
crystalWinter666 Oct 27, 2026
36479a2
feat(fabric): add Fabric loader distribution and filtered mixin configs
crystalWinter666 Oct 27, 2026
a766b4f
build: bundle loader libraries and verify both distributions
crystalWinter666 Oct 27, 2026
6fa267c
feat(fabric): boot the Fabric server with Bukkit compatibility
crystalWinter666 Oct 27, 2026
a16b36e
fix(runtime): bootstrap platform services before mixin application
crystalWinter666 Oct 27, 2026
94d392b
build: align Gradle layout and scripts with MultiLoader template
crystalWinter666 Oct 27, 2026
33b0348
fix(runtime): load bundled loader libraries during runServer
crystalWinter666 Oct 27, 2026
3a3d20f
build: bundle runtime libraries in both loader artifacts
crystalWinter666 Oct 27, 2026
83d7983
fix(logging): avoid unresolved custom converter in Forge layouts
crystalWinter666 Oct 27, 2026
4eca02e
docs: document MultiLoader build outputs; ci: only build and upload JARs
crystalWinter666 Oct 27, 2026
4fa128c
ci: publish SHA-256 checksums with build JARs
crystalWinter666 Oct 27, 2026
65c36da
docs: rewrite release notes for 2.0.0-alpha.1 MultiLoader build
crystalWinter666 Oct 27, 2026
212f798
ci: stage release JARs and SHA256SUMS in build/libs
crystalWinter666 Oct 27, 2026
4c5648c
chore: remove ignore files for deleted arclight modules
crystalWinter666 Oct 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
7 changes: 4 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand All @@ -19,8 +20,8 @@

<!-- List the exact commands and scenarios run. Do not check a box that was not exercised. -->

- [ ] `./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
Expand Down
102 changes: 16 additions & 86 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ atlassian-ide-plugin.xml

# Package Files #
*.jar
!common/libs/spigot-1.20.1-mapped-deobf.jar
*.war
*.nar
*.ear
Expand Down
21 changes: 9 additions & 12 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -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.

Expand Down
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<p align="center">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="assets/banner-dark.png">
<img src="assets/banner.png" alt="Luminara - Bukkit, Spigot, and Paper compatibility for Forge servers" width="100%">
<img src="assets/banner.png" alt="Luminara - Bukkit, Spigot, and Paper compatibility for Forge and Fabric servers" width="100%">
</picture>
</p>

Expand Down Expand Up @@ -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 |
Expand All @@ -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
Expand Down
20 changes: 18 additions & 2 deletions README_sc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)。

## 支持版本


Expand All @@ -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` |

## 社区支持
Expand Down
Loading
Loading