I have a gradle project and I want to UPDATE its version by building a task so that when ever i run that task it UPDATE the version number in gradle.properties
file automatically:
THIS:
ServiceVer=1.0.0 ServiceSnapshot=-SNAPSHOT
Should change like:
ServiceVer=2.0.0 ServiceSnapshot=-SNAPSHOT
what task do i need to write or any basic and easy example(link) to understand? i am new to gradle. i want to have all these changes in a java project not in an android project.