This commit is contained in:
2026-03-16 16:37:51 -06:00
commit 790ca442b2
9 changed files with 520 additions and 0 deletions

24
build.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
IMAGE="gradle:8.7-jdk21"
echo "=== Building with Docker ($IMAGE) ==="
echo "Project dir: $(pwd)"
echo ""
docker run --rm \
-v "$PWD":/project \
-v "$PWD/.gradle_cache:/home/gradle/.gradle" \
-w /project \
"$IMAGE" \
gradle build "$@"
echo ""
echo "=== Build complete ==="
ls -lh build/libs/*.jar 2>/dev/null || echo "No jars found in build/libs/"
echo ""
echo "put the build/libs/cobblemon-battle-api-1.0.0.jar in the mods folder of your minecraft instance to use it"