I have a simple Gradle project with a configured Project SDK Java 1.8.
Running the project as a Java application inside IntelliJ works fine and Java 1.8 is used.
But if I use a Gradle task like "run" inside the IntelliJ the SDK-Version is ignored.
It takes always Java 1.7 which is the default on my operation system.
Is there a way to force the Gradle process to use the configured Project SDK?
Intellij comes with a Gradle wrapper to Version 2.0. Is there a way to update
the wrapper to use Gradle 2.3?