Closed rustycl0ck closed 5 years ago
@rustycl0ck As a best practice, I probably wouldn't create release tags on feature branches. You should only be doing that on master (i.e., designate a single branch that you use to tag and deploy release versions). The plugin limits itself to the current branch when looking for tags -- it does not consider any other branches (that would be confusing -- what happens if you delete that branch?).
While running the
tag
task, it considers (for filtering) the tags only on current branch. I have two branches on my project. Both have the same gradle and plugin settings. Tags onbranch-1
:v0.1.0-alpha.1
,v0.1.0-alpha.2
,v0.1.0-alpha.3
Then createdbranch-2
and someone else worked there. Tags onbranch-2
:v0.1.0-alpha.4
,v0.1.0-alpha.5
Now when I do
gradle tag
onbranch-1
it throws an error thatv0.1.0-alpha.4
already exists while it should tag it withv0.1.0-alpha.6