Repository navigation
Building
This page is for people who want to build Celeris from source.
- A JDK 25 to run Gradle. Fabric Loom needs it. The build downloads Java 21 by itself for the 1.21.x targets.
- The shared build logic, in a folder named
bichal-build-logic, next to the Celeris folder. - CMake and a C++ compiler, only if you want to build the native libraries.
- Clone the shared build logic and Celeris, side by side:
git clone https://github.com/bichal/BichalBuildLogic.git bichal-build-logic
git clone https://github.com/bichal/Celeris.git
cd CelerisThe folder must be called bichal-build-logic. If it is missing, the build stops at once and tells you where to clone it.
-
Optional: to build exactly what CI builds, check out the shared build logic at the commit that CI uses. You can find the commit in
.github/workflows/ci.yml. -
Build:
./gradlew build # every Minecraft version, with tests
./gradlew :1.21.1:runClient # a test game for one version, on NeoForge
./gradlew :1.21.1-fabric:runClient # the same, on Fabric
./gradlew buildAndCollect # release jars, in build/libs/Other useful tasks:
./gradlew publishToMavenLocal # install your build locally, for other mods on this computer
./gradlew benchmarkTest # ring buffer speed test, not part of build or checkAdd -Pbichal.loaders=neoforge or -Pbichal.loaders=fabric to build only one loader. For example:
./gradlew build -Pbichal.loaders=fabricA local build works without the native libraries. Without them, Celeris uses deflate and the Java physics kernel.
To build the native libraries, add -Pbichal.native.build=true to any build, or run one of these tasks:
./gradlew buildNativeZstd
./gradlew buildNativeCelerisPhysicsThe native libraries are never stored in the repository. They are build output, written to natives/ on your computer or by CI. The physics kernel is built so that its math gives the same results as the Java version. A test checks this on every processor type.
Back to Home.
Players and servers
Mod authors
Developers