Documentation: https://docs.faststats.dev/java
Run Gradle from the repository root. The library modules use the standard Java lifecycle, while deployable example plugins and mods use the packaging task expected by their platform.
Use build for the reusable FastStats libraries:
./gradlew :core:build
./gradlew :config:build
./gradlew :bukkit:build
./gradlew :bungeecord:build
./gradlew :hytale:build
./gradlew :minestom:build
./gradlew :nukkit:build
./gradlew :sponge:build
./gradlew :velocity:buildLibrary jars are written to each module's build/libs directory. Fabric and NeoForge compatibility artifacts are
published under stable Maven artifact IDs with Minecraft range suffixes:
dev.faststats.metrics:fabric:<sdk-version>+mc26.1-26.2
dev.faststats.metrics:neoforge:<sdk-version>+mc26.1-26.2
Use checkPlatformCompat to compile all Fabric and NeoForge compatibility modules.
These examples use Shadow so FastStats is bundled into the deployable plugin or server jar. Build the shadowJar task
directly when you want the artifact to install or run:
./gradlew :bukkit:example-plugin:shadowJar
./gradlew :bungeecord:example-plugin:shadowJar
./gradlew :hytale:example-plugin:shadowJar
./gradlew :minestom:example-server:shadowJar
./gradlew :nukkit:example-plugin:shadowJar
./gradlew :sponge:example-plugin:shadowJar
./gradlew :velocity:example-plugin:shadowJarUse the *-all.jar file from the example module's build/libs directory.
Fabric mods should be packaged by Fabric Loom, not Shadow. Build the mod jar with:
./gradlew :fabric:example-mod:jarUse fabric/example-mod/build/libs/example-mod-<version>.jar. Do not use a Shadow *-all.jar for Fabric; it can bundle
Minecraft and loader internals into the mod.
To compile and test all modules with the standard lifecycle, run:
./gradlew buildFor deployable example artifacts, run the platform-specific commands above after build or instead of it.
Compile all published platform compatibility modules with:
./gradlew checkPlatformCompat