I am trying to include my application's version through git using gradle build system. I want to run the following command to get the version info from git:
git describe --tags --match "v[0-9]*"
After reading the reference from here, I am using the following gradle syntax:
commandLine 'git', 'describe', '--tags', '--long', '--match "v[0-9]*"'
but it gives error in execution.
error: unknown option `match v[0-9]*'
I have tried escaping the double quote with backslash, but that does not work either. Can someone please point me towards a correct way of executing above command through gradle?