update gradle script to detect version from tag.

parent 60ff9529
Pipeline #521 failed with stages
in 1 minute and 29 seconds