Created
January 28, 2020 19:47
-
-
Save fabiojose/0f1995a7fa7a3ec46dbb8f51eedc4ff2 to your computer and use it in GitHub Desktop.
Get project version using gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
gradle properties \ | |
--no-daemon \ | |
--console=plain -q \ | |
| grep "^version:" \ | |
| awk '{printf $2}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment