gradle.properties fail reading property with dot notation
And another one:
println property('build.version')
println "Version: ${property('build.version')}"
or
println ext['build.version']
println "Version: ${ext['build.version']}"
See Properties and Extra Properties documentation.
Another way to get access to the properties is using syntax below
println "Version: ${project.'build.version'}"
You cannot use properties with a dot in this way because Groovy thinks it's a version
property of the build
instance. If you want a property to contain a dot then you should use it in the following way:
println rootProject.properties['build.version']