copied and pasted change from https://github.com/adamharris7/gradle-release/commit/17774749eb088291e0c5934747e83d0ba8783f21