Add Gradle wrapper task.
Catch IncorrectObjectTypeException on Git repo.
Correct matching of default release tag pattern.