I want to run this in command line ; ./gradlew name -Ptest_foo=bar.
I am using the ‘test_foo’ value to override a default value in my code however it s not working as expected.It s returning the default value and does not take the command line argument into consideration.
Please any help or advice will be highly appreciated.
Note : I am pretty new to Gradle and groovy.
Thanks for your answer, it works fine however wanted to set my properties in order to use them in the javacode. This is the updated code that worked for me.