I have a Gradle project perfectly running (from the command line), configured to use a JDK specified with a relative path.
For this, I added a gradle.properties file to my project, containing:
org.gradle.java.home = jdk/
But when I try to run the build from Intellij Idea (14.0.3), I get:
Java home supplied via 'org.gradle.java.home' is invalid. Invalid directory: jdk/
Using absolute paths solves the issue. Do I misuse the gradle.properties or I just have to report a bug to Jetbrains, related to their Gradle plugin?
This is a known issue with IntelliJ's Gradle plugin, which you can upvote in their issue tracker here: https://youtrack.jetbrains.com/issue/IDEA-208432
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With