Boolean properties in gradle.properties file is read as string
<p>I am new to gradle. I have a boolean property in gradle.properties file. When I tried to access it, the property is set as string. The string property always seemed to be evaluated as true when the string is not null and not empty.</p>

<p>My gradle.properties looks like this </p>

<pre><code>enableGradleApp=false
</code></pre>

<p>and my settings.gradle looks like </p>

<pre><code>if (enableGradleApp) {
println 'Enabled core'
}
</code></pre>

<p>The message 'Enabled Core' is always gets printed.</p>

<p>Need some help please</p>