Skip to content
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

Fix 4686 Use IDEA Project JDK first #4689

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

griffio
Copy link
Contributor

@griffio griffio commented Oct 3, 2023

fixes #4686

🧪 Have tested locally with snapshot IDEA plugin against reproducibles (Spring Boot Plugin + JAVA_HOME JDK 11)

getAvailableJdk() checks for project JDK first, then for the most recent JDK version and finally the internal JDK that could be JAVA_HOME

Explicit fallback to JAVA_HOME may not be needed as getAvailableJdk() appears to do this anyway

@griffio griffio changed the title Use IDEA Project JDK first Fix 4689 Use IDEA Project JDK first Oct 3, 2023
@griffio griffio changed the title Fix 4689 Use IDEA Project JDK first Fix 4686 Use IDEA Project JDK first Oct 3, 2023
@dellisd
Copy link
Collaborator

dellisd commented Oct 18, 2023

Is this still a draft?

@griffio griffio marked this pull request as ready for review October 18, 2023 12:44
getAvailableJdk checks for project Jdk first, then for the most recent Jdk version and finally the internal Jdk that could be JAVA_HOME

Fallback to JAVA_HOME may not be needed
@griffio
Copy link
Contributor Author

griffio commented Oct 18, 2023

Is this still a draft?
Have now opened and rebased

@dellisd dellisd merged commit c991a2a into cashapp:master Oct 18, 2023
7 checks passed
@griffio griffio deleted the fix-4686-idea-plugin branch October 18, 2023 14:00
hfhbd pushed a commit that referenced this pull request Apr 2, 2024
getAvailableJdk checks for project Jdk first, then for the most recent Jdk version and finally the internal Jdk that could be JAVA_HOME

Fallback to JAVA_HOME may not be needed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IDE plugin uses Java exported by JAVA_HOME instead of Project settings
2 participants