Hi, I like the idea of your plugin, but unfortunately my CI, which runs in a docker container, doesn't have git installed. So I forked the concept here: I imagine you don't wish to move to Java Code, and perhaps even JGit, however feel fee to borrow from any of that if you want. Also feel free to close after you've reviewed this.
https://bitbucket.org/xenoterracide/gradle-plugin-bundle/src/master/src/main/java/com/xenoterracide/gradle/plugin/SemVerPlugin.java
https://bitbucket.org/xenoterracide/gradle-plugin-bundle/src/master/src/test/java/com/xenoterracide/gradle/plugin/SemVerPluginTest.java