Skip to content

Commit b4866e5

Browse files
committed
Configure toolchain locations when building PRs
This commit updates the script that builds PRs to add locations to the installed JDK within the CI image. Without this change, PRs fail to build because of the recently introduced JDK21 toolchain requirement in the Spring Framework build. Closes gh-30472
1 parent a9fa813 commit b4866e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ci/scripts/build-pr.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ set -e
44
source $(dirname $0)/common.sh
55

66
pushd git-repo > /dev/null
7-
./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false --no-daemon --max-workers=4 check
7+
./gradlew -Dorg.gradle.internal.launcher.welcomeMessageEnabled=false -Porg.gradle.java.installations.fromEnv=JDK17,JDK21 \
8+
--no-daemon --max-workers=4 check
89
popd > /dev/null

0 commit comments

Comments
 (0)