Fichiers

16 lignes
615 B
Bash

#!/bin/sh
# Compile GastinelClient dans un conteneur JDK 21 jetable (rien n'est installé sur l'hôte).
# 8 Go : la décompilation du client (Vineflower) échoue avec 4 Go.
# Usage (sur cornafserver) : sh build-sur-cornafserver.sh -> build/libs/*.jar
set -e
cd "$(dirname "$0")"
mkdir -p "$HOME/.cache/gastinelclient-gradle"
nice -n 10 docker run --rm --memory 8g --cpus 4 \
-u "$(id -u):$(id -g)" \
-e GRADLE_USER_HOME=/gradle-home \
-v "$HOME/.cache/gastinelclient-gradle:/gradle-home" \
-v "$(pwd):/src" -w /src \
eclipse-temurin:21-jdk \
sh ./gradlew --no-daemon clean test build
ls -l build/libs