Skip to content

Commit 542f72d

Browse files
committed
[GR-60878] Gradle project: use mx.get_tools_jdk instead of mx.get_jdk.
PullRequest: graalpython/3635
2 parents 136c64c + 24d39f0 commit 542f72d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mx.graalpython/mx_graalpython_gradleproject.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2024, 2025, Oracle and/or its affiliates. All rights reserved.
22
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
33
#
44
# The Universal Permissive License (UPL), Version 1.0
@@ -239,7 +239,7 @@ def abortCallback(msg):
239239
mx.abort("Could not find a JDK of version between 17 and 21 to build a Gradle project.\n"
240240
"Export GRADLE_JAVA_HOME pointing to a suitable JDK "
241241
"or use the generic MX mechanism explained below:\n" + msg)
242-
jdk = mx.get_jdk('17..21', abortCallback=abortCallback)
242+
jdk = mx.get_tools_jdk('17..21', abortCallback=abortCallback)
243243
env['GRADLE_JAVA_HOME'] = jdk.home
244244
env['JAVA_HOME'] = jdk.home
245245
else:

0 commit comments

Comments
 (0)