researchgate / gradle-release

gradle-release is a plugin for providing a Maven-like release process for projects using Gradle
MIT License
868 stars 220 forks source link

Version always updated #258

Open scottf opened 6 years ago

scottf commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

Hello?

Hillkorn commented 6 years ago

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