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

Version always updated

Open scottf opened this issue 6 years ago • 3 comments

Version 2.6.0 The command

gradle clean -x test -PbuildRelease=true release publishWebAppPublicationToCentralRepository publishPropertyFilePublicationToCentralRepository

always updates the version in gradle.properties and commits the file. We don't want it too. (Actually we want it to go to a different branch, but that's already an enhancement request)

scottf avatar May 10 '18 23:05 scottf

I looked in the code of the PluginHelper latest master and the 2.6.0 zip file and both look like it should not do the version write, so is this property overridden by some other task or flag on this command line?

scottf avatar May 10 '18 23:05 scottf

Hello?

scottf avatar May 11 '18 18:05 scottf

Hey

there are 2 tasks that do they version increment.

  1. unSnapshotVersion which makes 2.1.0-SNAPSHOT to 2.1.0 for example and
  2. updateVersion that increases the version and adds a -SNAPSHOT if SNAPSHOT had to be removed

Hillkorn avatar May 13 '18 20:05 Hillkorn