initial
This commit is contained in:
24
build.sh
Executable file
24
build.sh
Executable 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"
|
||||
Reference in New Issue
Block a user