Files
2026-03-16 16:50:49 -06:00

25 lines
548 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
IMAGE="gradle:8.10-jdk21"
echo "=== Building with Docker ($IMAGE) ==="
echo "Project dir: $(pwd)"
echo ""
docker run -it --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"