Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7N4ZDbUtA3ofqAqRV
12 lines
727 B
Bash
Executable File
12 lines
727 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Runs the small Gradle project in ../lanes/upgrade (Java 25 toolchain) with two Gradle versions, Gradle itself on JDK 25.
|
|
# OLD_GRADLE=/path/to/gradle-8.14.3/bin/gradle NEW_GRADLE=/path/to/gradle-9.x/bin/gradle ./scripts/gradle.sh
|
|
source "$(dirname "$0")/env.sh"
|
|
{ echo "# 13-gradle: 'gradle run' with Gradle running on JDK $(ver "$J25")"
|
|
for g in "${OLD_GRADLE:?}" "${NEW_GRADLE:?}"; do
|
|
v=$("$g" --version 2>/dev/null | grep -E '^Gradle ' | head -1); echo "--- $v"
|
|
rm -rf "$W/gp"; cp -r "$ROOT/../lanes/upgrade" "$W/gp"
|
|
(cd "$W/gp" && JAVA_HOME=$J25 "$g" --no-daemon -q run 2>&1 | clean | grep -E -A1 'running on|What went wrong' | head -3 | sed 's/^/ /')
|
|
done
|
|
} > "$OUT/13-gradle.txt"
|