public class VersionFromGitJkBean extends JkBean
Modifier and Type | Field and Description |
---|---|
boolean |
autoConfigureProject |
java.lang.String |
commentVersionPrefix |
static java.lang.String |
TAG_TASK_NAME |
boolean |
tagAfterPublish |
java.lang.String |
tagPrefixForVersion |
Modifier | Constructor and Description |
---|---|
protected |
VersionFromGitJkBean() |
Modifier and Type | Method and Description |
---|---|
void |
configure(JkProject project,
boolean tag)
Configure the specified project to use git version for publishing and tagging the repository.
|
JkGitProcess |
git() |
protected void |
postInit() |
VersionFromGitJkBean |
refresh()
version() return is cached to avoid too many git call. |
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.
|
java.lang.String |
versionAsText() |
clean, getBaseDir, getImportedJkBeans, getOutputDir, getRuntime, help, init, toString
public static final java.lang.String TAG_TASK_NAME
public java.lang.String commentVersionPrefix
public java.lang.String tagPrefixForVersion
public boolean autoConfigureProject
public boolean tagAfterPublish
public void configure(JkProject project, boolean tag)
tag
- If true, the repository will be tagged right after the project.publication.publish()public JkGitProcess git()
public JkVersion version()
public java.lang.String versionAsText()
public boolean tagIfDiffers()
public VersionFromGitJkBean refresh()
version()
return is cached to avoid too many git call. Invoke this method to clear version cache.public void showVersion()