Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

intellij idea gradle plugin unable to use relative paths specified in gradle.properties

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?

like image 419
Adrian Bona Avatar asked Dec 09 '25 00:12

Adrian Bona


1 Answers

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

like image 162
CletusW Avatar answered Dec 10 '25 13:12

CletusW



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!