Build Commands
Standard Build
To compile the mod and generate the JAR file:Clean Build
To remove previous build artifacts and perform a fresh build:Generate Sources
To generate Minecraft source files for IDE support:Build Process
Process resources
Gradle processes
fabric.mod.json and expands version properties from gradle.properties.The mod version (1.1.7) is automatically inserted into the mod metadata.Compile Java code
All Java source code is compiled with:
- Source compatibility: Java 21
- Target compatibility: Java 21
- Release version: 21
Remap to production
Fabric Loom remaps the compiled code from Yarn mappings to production (obfuscated) mappings for compatibility with Minecraft.
Publishing to Maven
The project is configured with Maven publishing support.Local Maven Repository
To publish to your local Maven repository:Remote Maven Repository
To configure publishing to a remote Maven repository, add your repository to thepublishing.repositories block in build.gradle:
Build Output
After a successful build, you’ll find:| File | Location | Description |
|---|---|---|
| Mod JAR | build/libs/soullink-1.1.7.jar | Production-ready mod file |
| Dev JAR | build/libs/soullink-1.1.7-dev.jar | Development version with Yarn mappings |
Gradle Properties
Key properties fromgradle.properties:
Troubleshooting
Common Issues
- Build fails with Java version error: Ensure you’re using JDK 21
- Dependency resolution fails: Check your internet connection and Gradle cache
- Remap task fails: Try
./gradlew cleanand rebuild