-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.16.2 ignores java.import.gradle.java.home #1589
Comments
Hi @MetricMike, The jdk we are searching here is just used to launch the gradle server, and is not used to import and run gradle task via gradle tooling api. Ideally, If it's not the case, we need to fix it. Could you please give more information about this issue? Like, a sample project. |
Thank you so much for the quick response! Using Spring Initializer to create a brand/new repo on https://github.com/MetricMike/example_vscode_1589: The output from
The output from
After setting
My environment (at home, Ubuntu 24.04 WSL2 instance) has JAVA_HOME set:
The specific case I mentioned (not reproduced here) was on a CentOS7 machine whose JAVA_HOME pointed toward a Java18 JDK. When I specify I'll continue to try to narrow down the differences, but I am disheartened by the "just used to launch the gradle server" assertion. The debug output provided by this extension is not clear about how the extension determines which JDK to use - the PR I linked seems definitive that configuration settings are ignored, yet when trying to reproduce at home that doesn't seem to be the case. The only clue I have to lean on is a PR. |
Did you set |
#1554 broke JDK detection when starting the Gradle Server.
Before, it would honor
java.import.gradle.java.home
if set and at or above the required version (currently 17).vscode-gradle/extension/src/server/serverUtil.ts
Lines 30 to 33 in 5763213
After, it will select the embedded JRE from the redhat.java extension when present.
vscode-gradle/extension/src/server/serverUtil.ts
Line 24 in 55e3b96
Please revert this breaking change and respect user configuration when set.
The text was updated successfully, but these errors were encountered: