Skip to content

faststats-dev/faststats-java

Repository files navigation

FastStats Java

Documentation: https://docs.faststats.dev/java

Building

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.

Libraries

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:build

Library 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.

Bukkit, BungeeCord, Hytale, Minestom, Nukkit, Sponge, and Velocity examples

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:shadowJar

Use the *-all.jar file from the example module's build/libs directory.

Fabric example mod

Fabric mods should be packaged by Fabric Loom, not Shadow. Build the mod jar with:

./gradlew :fabric:example-mod:jar

Use 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.

Building everything

To compile and test all modules with the standard lifecycle, run:

./gradlew build

For deployable example artifacts, run the platform-specific commands above after build or instead of it.

Platform compatibility checks

Compile all published platform compatibility modules with:

./gradlew checkPlatformCompat

About

Prebuilt SDKs for publishing metrics to faststats.dev

Topics

Resources

License

Stars

8 stars

Watchers

1 watching

Forks

Contributors