gradle-release icon indicating copy to clipboard operation
gradle-release copied to clipboard

commitVersionFileOnly issue in GitAdapter

Open mprinci2 opened this issue 7 years ago • 1 comments

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.

mprinci2 avatar Dec 19 '17 23:12 mprinci2

#240

Hillkorn avatar Dec 21 '17 11:12 Hillkorn