I want to be able to grab the build.gradle version via a bash shell script that happens post build. How would I go about getting this? 
For reference, in a Maven project, I achieve this task by using the following commmand: mvn help:evaluate -Dexpression=project.version | grep -e '^[^\[]'. What is it's equivalent for Gradle? 
The properties task can also do this.
./gradlew properties | grep ^version:
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With