public class MojoCommon
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REQUIRED_VERSION_PROPERTY_NAME
Describes a minimum required version or version range for Jib.
|
static java.lang.String |
VERSION_URL |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkJibVersion(org.apache.maven.plugin.descriptor.PluginDescriptor descriptor)
Check that the actual version satisfies required Jib version range when specified.
|
static boolean |
shouldSkipJibExecution(JibPluginConfiguration jibPluginConfiguration)
Determines if Jib goal execution on this project/module should be skipped due to configuration.
|
public static final java.lang.String REQUIRED_VERSION_PROPERTY_NAME
public static final java.lang.String VERSION_URL
public static void checkJibVersion(org.apache.maven.plugin.descriptor.PluginDescriptor descriptor)
throws org.apache.maven.plugin.MojoExecutionException
null, which should only occur during debug.descriptor - the plugin versionorg.apache.maven.plugin.MojoExecutionException - if the version is not acceptablepublic static boolean shouldSkipJibExecution(JibPluginConfiguration jibPluginConfiguration)
jibPluginConfiguration - usually this, the Mojo this check is applied in.true if Jib should be skipped (should not execute goal), or false if it
should continue with execution.