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

妖精的绣舞 提交于 2021-01-27 12:50:05

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/28726011/intellij-idea-gradle-plugin-unable-to-use-relative-paths-specified-in-gradle-pro

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!