I understand that snapshot is something under development, i.e. 1.0-SNAPSHOT
is something that will be eventually released as 1.0
.
But why do I need it?
Here is the flow:
- I develop the library with semantic versioning
Major.Minor.Revision[.Build]
model. - I explicitly define
Major
andMinor
whileRevision
(orBuild
) is incremented automatically by CI/CD pipeline - After PR is accepted and gated build is successfully run new version is published to company's private repository.
- In dependent project I specify either exact version or floating version
Major.+
.
Is there any place for SNAPSHOT
here?