I have been using Buildship to compile a Gradle Java multi-project in Eclipse. Recently, a new feature was added which requires a newer version of JDK. How do I use the newer version of JDK to compile the projects?
When I run a Gradle build task in Eclipse, in the Console window I can see that it is using the older version of Java (Java Home is displayed near the top of the Console output). I see that this version of Java is also specified in the “.settings/org.eclipse.buildship.core.prefs” files stored with each project. Is there a way I can tell Buildship to use the newer version of JDK? Specifying the newer version under Java Build Path in Eclipse doesn’t fix it for Buildship. Seems that maybe Buildship is using the JDK version that was specified when I first imported the project.
Thank you for your help!