Class OddEvenVersionPolicy

All Implemented Interfaces:

@Singleton @Named("OddEvenVersionPolicy") @Description("A VersionPolicy implementation that selects even version numbers only for releases") public final class OddEvenVersionPolicy extends Object implements VersionPolicy
A VersionPolicy implementation that propose even version numbers only for releases and odd numbers for development. For example:
  • 1.0.0-SNAPSHOT gets 1.0.0 for next release,
  • 1.0.1-SNAPSHOT gets 1.0.2 for next release,
  • 1.0.2 gets 1.0.3-SNAPSHOT for next development version.