Gradle and properties

Hi,

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 ?

Regards.

1 comment

Hi Bruno,

You can set these properties in '

gradle.properties' 
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 gradle.properties files in any subproject directory.
0

Please sign in to leave a comment.