Question 1: Is it possible to specify JDK for an IntelliJ IDEA project for storing in Git? Currently, I have to clone an IntelliJ Java project from Git and then manually set up JDK in Project Structure. Is it possible to get the JDK automatically set up (selected) for the project in IntelliJ upon project cloning from Git?
Also, related question 2: why do we need to set up the JDK in IntelliJ for the project if we specify the JDK version in the Maven POM file, so it could be selected for the project automatically from those JDKs registered with IntelliJ?