Gradle and properties


I have a project using Gradle 1.6. It has a reference to a property passed through the -P flag.
Whenever I try to import my project in IntelliJ IDEA, it says it cannot find the aforementioned property and refuses to import the project.

How can I pass the property value to IntelliJ so the Gradle plugin can find it ?


1 comment

Hi Bruno,

You can set these properties in '' 
file. The file you can place in the Gradle user home directory (defaults to USER_HOME/.gradle) or in your project directory. For multi-project builds you can place files in any subproject directory.

Please sign in to leave a comment.