Right now I have a Spring project (needs Java 17) and a minecraft-forge-1.12 project (needs Java 8) on the same system.
I want vscode to automatically change JAVA_HOME between /usr/lib/jvm/java-17-openjdk-amd64 and /usr/lib/jvm/java-8-openjdk-amd64 for gradlew command when I switch between these two project.
I tried using .vscode/settings.json to do that, but java.import.gradle.java.home cannot change in settings.json, so I can't change this for Gradle.
Is there a way doing that?
