When I run this task:
task tmpTask << {
project.properties.each {println \" $it\"}
}
I see:
org.gradle.java.home=/u
gradle.properties
Add prop to the file gradle.properties
hi1=hi
Add -Pxxx end of commandline.
./gradlew -q readPropertiesTask -Phi2=tete
Several properties:
./gradlew -q readPropertiesTask -Phi2=tete -Phi3=rr
val propFromFile = project.properties["hi1"]
println("propFromFile = $propFromFile")