Skip to content

Commit e9f06c0

Browse files
committed
chore: Use gradle 9.1 for java 25
1 parent 8cc63e1 commit e9f06c0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

agent/test/helper.bash

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,13 @@ find_annotation_jar() {
151151
export ANNOTATION_JAR="$(find_annotation_jar)"
152152

153153
# absolute gradle wrapper path (in the same directory as this file)
154-
GRADLE_WRAPPER="$TOP_LEVEL/agent/test/gradlew"
154+
if is_java 25; then
155+
# use 9.1 for newer java
156+
GRADLE_WRAPPER="$TOP_LEVEL/gradlew"
157+
else
158+
# this is 8.5 for older javas
159+
GRADLE_WRAPPER="$TOP_LEVEL/agent/test/gradlew"
160+
fi
155161

156162
# Shared gradle wrapper function
157163
gradlew() {

0 commit comments

Comments
 (0)