gradle.properties fail reading property with dot notation
<p>I receive an error reading a property with dot notation from <code>gradle.properties</code>. Why?</p>

<p>If I use <code>version</code> instead of <code>build.version</code> everything is OK.
Thanks in advance.</p>

<h1>FAIL CASE</h1>

<p><strong>gradle.properties</strong></p>

<pre><code>build.version=2.0.1
</code></pre>

<p><strong>build.gradle</strong></p>

<pre><code>apply plugin: 'java'

task testProperties &lt;&lt; {
    println "***************** TEST **********************"
    println build.version
    println "*********************************************"
}
</code></pre>

<h3>EXECUTION</h3>

<pre><code>... $ gradle devTest
:devTest
***************** TEST **********************
:devTest FAILED

FAILURE: Build failed with an exception.

* Where:
Build file '..../build.gradle' line: 50

* What went wrong:
Execution failed for task ':devTest'.
&gt; Could not find property 'version' on task ':build'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or&lt;br&gt; --debug option to get more log output.

BUILD FAILED
</code></pre>

<h1>SUCCES CASE</h1>

<p><strong>gradle.properties</strong></p>

<pre><code>version=2.0.1
</code></pre>

<p><strong>build.gradle</strong></p>

<pre><code>apply plugin: 'java'

task testProperties &lt;&lt; {
    println "***************** TEST **********************"
    println version
    println "*********************************************"
}
</code></pre>

<h3>EXECUTION</h3>

<pre><code>... $ gradle devTest

:devTest

***************** TEST **********************
2.0.1

*********************************************

BUILD SUCCESSFUL
</code></pre>