Temporarily using mobibot.mustache to fix CI until Semver 1.2.0 is out.

This commit is contained in:
Erik C. Thauvin 2019-04-27 03:52:14 -07:00
parent af090e7940
commit 8976686286
5 changed files with 38 additions and 8 deletions

View file

@ -18,7 +18,6 @@ defaultTasks 'deploy'
final def packageName = 'net.thauvin.erik.mobibot'
final def deployDir = 'deploy'
def isRelease = 'release' in gradle.startParameter.taskNames
final def semverProcessor = "net.thauvin.erik:semver:1.1.1"
mainClassName = packageName + '.Mobibot'

31
mobibot.mustache Normal file
View file

@ -0,0 +1,31 @@
/*
* This file is automatically generated.
* Do not modify! -- ALL CHANGES WILL BE ERASED!
*/
package {{packageName}};
import java.time.*;
/**
* 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 LocalDateTime 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 PRERELEASE = "{{preRelease}}";
public static final String BUILDMETA = "{{buildMeta}}";
public static final String VERSION = "{{version}}";
/**
* Disables the default constructor.
*/
private {{className}}() {
throw new UnsupportedOperationException("Illegal constructor call.");
}
}

View file

@ -14,13 +14,13 @@ import java.time.*;
public final class ReleaseInfo {
public static final String PROJECT = "mobibot";
public static final LocalDateTime BUILDDATE =
LocalDateTime.ofInstant(Instant.ofEpochMilli(1556357432557L), ZoneId.systemDefault());
LocalDateTime.ofInstant(Instant.ofEpochMilli(1556362138167L), ZoneId.systemDefault());
public static final int MAJOR = 0;
public static final int MINOR = 7;
public static final int PATCH = 3;
public static final String PRERELEASE = "beta";
public static final String BUILDMETA = "430";
public static final String VERSION = "0.7.3-beta+430";
public static final String BUILDMETA = "438";
public static final String VERSION = "0.7.3-beta+438";
/**
* Disables the default constructor.

View file

@ -99,7 +99,7 @@ import java.util.StringTokenizer;
* @since 1.0
*/
@SuppressWarnings("WeakerAccess")
@Version(properties = "version.properties", className = "ReleaseInfo")
@Version(properties = "version.properties", template = "mobibot.mustache", className = "ReleaseInfo")
public class Mobibot extends PircBot {
// The default port.

View file

@ -1,9 +1,9 @@
#Generated by the Semver Plugin for Gradle
#Sat Apr 27 02:30:31 PDT 2019
version.buildmeta=430
#Sat Apr 27 03:48:57 PDT 2019
version.buildmeta=438
version.major=0
version.minor=7
version.patch=3
version.prerelease=beta
version.project=mobibot
version.semver=0.7.3-beta+430
version.semver=0.7.3-beta+438