Renamed ReleaseInfo.mustache to version.mustache.
Added deploy script.
This commit is contained in:
parent
8a945b2dc6
commit
f92f7d26b1
5 changed files with 42 additions and 65 deletions
|
@ -1,36 +1,32 @@
|
|||
/*
|
||||
* This file is automatically generated.
|
||||
* Do not modify! -- ALL CHANGES WILL BE ERASED!
|
||||
*/
|
||||
package {{packageName}};
|
||||
* This file is automatically generated.
|
||||
* Do not modify! -- ALL CHANGES WILL BE ERASED!
|
||||
*/
|
||||
package {{packageName}}
|
||||
|
||||
import java.time.*;
|
||||
import java.time.LocalDateTime
|
||||
import java.time.ZoneId
|
||||
import java.time.Instant
|
||||
|
||||
/**
|
||||
* Provides semantic version information.
|
||||
*
|
||||
* @author <a href="https://github.com/ethauvin/semver">Semantic Version Annotation Processor</a>
|
||||
*/
|
||||
public final class {{className}} {
|
||||
public static final String PROJECT = "{{project}}";
|
||||
public static final String VERSION = "{{version}}";
|
||||
public static final LocalDateTime BUILDDATE =
|
||||
LocalDateTime.ofInstant(Instant.ofEpochMilli({{epoch}}L), ZoneId.systemDefault());
|
||||
* Provides semantic version information.
|
||||
*
|
||||
* @author [Semantic Version Annotation Processor](https://github.com/ethauvin/semver)
|
||||
*/
|
||||
object ReleaseInfo{
|
||||
const val PROJECT = "{{project}}"
|
||||
const val VERSION = "{{version}}"
|
||||
|
||||
@JvmField
|
||||
val BUILDDATE = LocalDateTime.ofInstant(Instant.ofEpochMilli({{epoch}}L), ZoneId.systemDefault())
|
||||
|
||||
public static final int MAJOR = {{major}};
|
||||
public static final int MINOR = {{minor}};
|
||||
public static final int PATCH = {{patch}};
|
||||
public static final String BUILDMETA = "{{buildMeta}}";
|
||||
public static final String PRERELEASE = "{{preRelease}}";
|
||||
const val MAJOR = {{major}}
|
||||
const val MINOR = {{minor}}
|
||||
const val PATCH = {{patch}}
|
||||
const val BUILDMETA = "{{buildMeta}}"
|
||||
const val PRERELEASE = "{{preRelease}}"
|
||||
|
||||
public static final String WEBSITE = "https://www.mobitopia.org/mobibot/";
|
||||
public static final String AUTHOR = "Erik C. Thauvin";
|
||||
public static final String AUTHOR_URL = "https://erik.thauvin.net/";
|
||||
|
||||
/**
|
||||
* Disables the default constructor.
|
||||
*/
|
||||
private {{className}}() {
|
||||
throw new UnsupportedOperationException("Illegal constructor call.");
|
||||
}
|
||||
const val WEBSITE = "https://www.mobitopia.org/mobibot/"
|
||||
const val AUTHOR = "Erik C. Thauvin"
|
||||
const val AUTHOR_URL = "https://erik.thauvin.net/"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue