public class JkPluginVersionFromGit extends JkPlugin
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
commentVersionPrefix |
boolean |
tagAfterPublish |
java.lang.String |
tagPrefixForVersion |
MANIFEST_BREAKING_CHANGE_URL_ENTRY, MANIFEST_LOWEST_JEKA_COMPATIBLE_VERSION_ENTRY| Modifier | Constructor and Description |
|---|---|
protected |
JkPluginVersionFromGit(JkClass jkClass) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
afterSetup()
Override this method to perform some actions, once the plugin has been setup by
JkClass.setup() method. |
JkGitProcess |
git() |
void |
showVersion() |
boolean |
tagIfDiffers()
Tags git repository and push with the version specified in last git comment.
|
JkVersion |
version()
Gets the current version either from commit message if specified nor from git tag.
|
beforeSetup, getJkClass, help, name, setJekaPluginCompatibilityRange, toStringpublic java.lang.String commentVersionPrefix
public java.lang.String tagPrefixForVersion
public boolean tagAfterPublish
protected JkPluginVersionFromGit(JkClass jkClass)
protected void afterSetup()
JkPluginJkClass.setup() method.
Typically, some plugins have to configure other ones (For instance, java plugin configures
scaffold plugin to instruct what to use as a template build class). Those kind of
configuration is better done here as the setup made in JkClass is likely
to impact the result of the configuration.
afterSetup in class JkPluginpublic JkGitProcess git()
public JkVersion version()
public boolean tagIfDiffers()
public void showVersion()