
com.outbrain.ci.friendly.flatten.maven.plugin.SemanticVersion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ci-friendly-flatten-maven-plugin Show documentation
Show all versions of ci-friendly-flatten-maven-plugin Show documentation
Plugin helps to use CI friendly versions in maven projects by simplifying the flatten-maven-plugin
The newest version!
package com.outbrain.ci.friendly.flatten.maven.plugin;
import java.util.Arrays;
public enum SemanticVersion {
MAJOR(0),
MINOR(1),
PATCH(2);
final int index;
SemanticVersion(int index) {
this.index = index;
}
static SemanticVersion of(String value) {
try {
return SemanticVersion.valueOf(value.toUpperCase());
} catch (IllegalArgumentException e) {
throw new IllegalArgumentException(
"Unknown semantic.version: " + value +
", expected values: " + Arrays.toString(SemanticVersion.values())
);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy