public class JkVersionFromGit
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.nio.file.Path |
getBaseDir() |
java.lang.String |
getVersion()
Gets the current version either from commit message if specified nor from git tag.
|
JkVersion |
getVersionAsJkVersion() |
java.lang.String |
getVersionTagPrefix() |
void |
handleVersioning(JkBuildable.Supplier buildableSupplier)
Configures the specified baseKBean to use git version for publishing and adds git info to the manifest.
|
static void |
handleVersioning(JkBuildable.Supplier buildableSupplier,
java.lang.String prefix)
Convenient static method for handling versioning of both project and base.
|
static JkVersionFromGit |
of() |
static JkVersionFromGit |
of(java.nio.file.Path baseDir,
java.lang.String versionTagPrefix) |
static JkVersionFromGit |
of(java.lang.String versionTagPrefix) |
public static JkVersionFromGit of(java.nio.file.Path baseDir, java.lang.String versionTagPrefix)
public static JkVersionFromGit of(java.lang.String versionTagPrefix)
public static JkVersionFromGit of()
public java.lang.String getVersionTagPrefix()
public java.nio.file.Path getBaseDir()
public java.lang.String getVersion()
public JkVersion getVersionAsJkVersion()
public void handleVersioning(JkBuildable.Supplier buildableSupplier)
public static void handleVersioning(JkBuildable.Supplier buildableSupplier, java.lang.String prefix)