passsy / gradle-GitVersioner

generates a project version for the given git project to distinguish between builds
Apache License 2.0
81 stars 22 forks source link

Branchname prefix "feature" is handled correctly, "bugfix" is not #25

Open tobias-neubert opened 5 years ago

tobias-neubert commented 5 years ago

The version name for a feature branch like this "feature/XYZ-566-something" is correctly converted into the version name "-XYZ-566-something". And with that version name the name of the resulting .jar file is correct.

But if I use a different prefix, "bugfix" for example, the prefix will not be removed from the version name leading to a completely broken .jar name of my resulting artifact.

I would like to have the same behaviour for any prefix, simply remove it.

To reproduce:

  1. Create a simple java library project
  2. Create a branch named "bugfix/Something"
  3. Build the jar file