I'm working on a Git workflow (not git-flow) for a Java project that uses Maven and Artifactory for artifact storage. On develop and feature/* branches the version number contains '-SNAPSHOT'. It is not desirable to have release/* or master branches with '-SNAPSHOT' so I'm trying to figure out when (and how) to get rid of it.
I came up with a partial workflow, as below, but it doesn't handle removing 'SNAPSHOT':
v1.0-snap v1.0-snap
feature/a * ---------> *
^ |
| |
| v
develop * * v1.0-snap
v1.0-snap |
|
v
release/1.1 v1.0-snap * -----> *
v1.1-snap
I came up with 2 options, but both might be wrong.
Option 1
v1.0-snap v1.0-snap
feature/a * ---------> *
^ |
| |
| v v1.1-snap
develop * * v1.0-snap *
v1.0-snap | /
| /
v /
release/1.1 v1.0-snap * -----> * v1.1-snap
\
\
\
master * --------> *
v1.1-snap v1.1
Option 2
v1.0-snap v1.0-snap
feature/a * ---------> *
^ |
| |
| v v1.1-snap
develop * * v1.0-snap *
v1.0-snap | /
| /
v /
release/1.1 v1.0-snap * -----> * ----- >* v1.1
v1.1-snap \
\
\
master *
v1.1
Both options seems weird to me, though.
Is there any best practice for this kind of flow?