How to remove the java standard library from a gradle project?
问题 How can one make Gradle not include the Java standard library as a dependency to IntelliJ IDEA project? I am using IntelliJ and every time I Refresh all Gradle projects : IntelliJ adds the Java standard library back to the project as an external dependency: So I have to manually remove it every single time: Things I tried that didn't work out fiddling with the sourceCompatibility and targetCompatability properties... applying the idea plugin to Gradle and setting idea.project.jdkName to null