The version is now calculated internally.
This commit is contained in:
parent
909b03e861
commit
6455662d23
10 changed files with 60 additions and 198 deletions
|
@ -14,15 +14,7 @@ public final class {{className}} {
|
|||
public final static int PATCH = {{patch}};
|
||||
public final static String PRERELEASE = "{{preRelease}}";
|
||||
public final static String BUILDMETA = "{{buildMeta}}";
|
||||
|
||||
/**
|
||||
* The full semantic version string.
|
||||
*/
|
||||
public final static String VERSION = Integer.toString(MAJOR) + '.'
|
||||
+ Integer.toString(MINOR) + '.'
|
||||
+ Integer.toString(PATCH)
|
||||
+ ((!PRERELEASE.isEmpty()) ? "-" + PRERELEASE : "")
|
||||
+ ((!BUILDMETA.isEmpty()) ? "+" + BUILDMETA : "");
|
||||
public final static String VERSION = "{{version}}";
|
||||
|
||||
/**
|
||||
* Disables the default constructor.
|
||||
|
|
|
@ -26,11 +26,6 @@ object {{className}} {
|
|||
val PRERELEASE = "{{preRelease}}"
|
||||
@JvmField
|
||||
val BUILDMETA = "{{buildMeta}}"
|
||||
|
||||
/**
|
||||
* The full semantic version string.
|
||||
*/
|
||||
@JvmField
|
||||
val VERSION = ("$MAJOR.$MINOR.$PATCH" + if (PRERELEASE.isNotEmpty()) "-$PRERELEASE" else ""
|
||||
+ if (BUILDMETA.isNotEmpty()) "+$BUILDMETA" else "")
|
||||
val VERSION = "{{version}}"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue