gradle-release
gradle-release copied to clipboard
commitVersionFileOnly issue in GitAdapter
I'm trying to run this plugin in a multi-project multi-version setting using the commitVersionFileOnly property set to true. I run the release task from the top-level project, and when the task updates each subproject to its new release version, the correct subproject version property file is updated (using project.file(extension.versionPropertyFile)). However, it is the top-level version property file that ends up being added to the Git commit, which is incorrect.
On line 126 in GitAdapter.groovy, the code should change from
command << extension.versionPropertyFile
to
command << project.file(extension.versionPropertyFile)
so the correct version property file is added to the Git commit.
#240