public final class JkJekaVersionRanges
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MANIFEST_BREAKING_CHANGE_URL_ENTRY
When publishing a plugin, authors can not guess which future version of Jeka will break compatibility.
|
static java.lang.String |
MANIFEST_LOWEST_JEKA_COMPATIBLE_VERSION_ENTRY
Manifest entry containing the lowest Jeka version which is compatible with a plugin.
|
Modifier and Type | Method and Description |
---|---|
static java.util.function.Consumer<JkManifest> |
manifestCustomizer(java.lang.String lowestVersion,
java.lang.String breakingChangeUrl)
Sets the custom compatibility range for a JkManifest object.
|
static void |
setCompatibilityRange(JkManifest manifest,
java.lang.String lowestVersion,
java.lang.String breakingChangeUrl)
Convenient method to set a Jeka Plugin compatibility range with Jeka versions.
|
public static final java.lang.String MANIFEST_BREAKING_CHANGE_URL_ENTRY
The register is expected to be a simple flat file.
Each row is structured as pluginVersion : jekaVersion
.
The example below means that :
1.2.1.RELEASE : 0.9.1.RELEASE
1.3.0.RELEASE : 0.9.5.M1
public static final java.lang.String MANIFEST_LOWEST_JEKA_COMPATIBLE_VERSION_ENTRY
null
and
running Jeka version is lower then a warning log will be emitted.public static void setCompatibilityRange(JkManifest manifest, java.lang.String lowestVersion, java.lang.String breakingChangeUrl)
lowestVersion
- Can be nullbreakingChangeUrl
- Can be nullMANIFEST_LOWEST_JEKA_COMPATIBLE_VERSION_ENTRY
public static java.util.function.Consumer<JkManifest> manifestCustomizer(java.lang.String lowestVersion, java.lang.String breakingChangeUrl)