Package org.basepom.mojo.dvc.strategy
Class TwoDigitsBackwardCompatibleVersionStrategy
java.lang.Object
org.basepom.mojo.dvc.strategy.AprVersionStrategy
org.basepom.mojo.dvc.strategy.TwoDigitsBackwardCompatibleVersionStrategy
- All Implemented Interfaces:
Strategy
@Named("two-digits-backward-compatible")
@Singleton
public class TwoDigitsBackwardCompatibleVersionStrategy
extends AprVersionStrategy
Relaxed variant of APR, very suitable for Java code. It is assumed that for every non-backwards compatible change, the artifactId is changed (e.g. by
attaching a number to the artifactId) and the code is repackaged into a different package. So it is possible to have multiple, non-backwards compatible major
versions on the classpath (foo vs. foo2 vs.foo3). So all versions with the same artifactId are backwards compatible; only forwards compatibility must be
ensured.
By using the APR parser, the major version flags forwards compatibility, the minor and patch are not used. If a qualifier is present, it must match.
-
Constructor Summary
-
Method Summary
Methods inherited from class org.basepom.mojo.dvc.strategy.AprVersionStrategy
isCompatible
-
Constructor Details
-
TwoDigitsBackwardCompatibleVersionStrategy
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceStrategy
- Overrides:
getName
in classAprVersionStrategy
- Returns:
- The name of the strategy.
-