Use the gradle-release-plugin
[release] cutting release: v0.0.1
[release] bumping version: v0.0.2-SNAPSHOT