I am working on an open source project which is currently based on java 8. I would like to upgrade the JDK to openJDK 11 and ideally, I would like to do it so via Gradle file to make sure that all devs get the change on their next fecth).
I locally made a test by defining (JavaVersion sourceCompatibility) in build.gradle but it seems IntelliJ ignore that parameter and still use Java 1.8. My current JVM setting is set to "use project JDK".
Hence, I have the following question:
- Knowing most of the devs are using inteliiJ, what is the best way to ensure all of them start building the project against openJDK 11? Is there another option than setting that parameter in build.gradle ? I also saw this parameters in .idea/misc.xml, would it work if I change it manually both in that file and in build.graddle to make sure that all devs got it ? I would prefer to have it right before I push anything on git
I am open to suggestion and I would like to thank you in advance for your help.
make sure that all other devs will have