Updated examples.
This commit is contained in:
parent
4e029507be
commit
90df90e543
7 changed files with 26 additions and 20 deletions
|
@ -9,7 +9,7 @@ plugins {
|
|||
|
||||
defaultTasks 'run'
|
||||
|
||||
def semverProcessor = 'net.thauvin.erik:semver:1.2.0'
|
||||
final def semverProcessor = 'net.thauvin.erik:semver:1.2.0'
|
||||
|
||||
sourceCompatibility = 1.8
|
||||
targetCompatibility = 1.8
|
||||
|
|
|
@ -15,7 +15,7 @@ val example = project {
|
|||
name = "example"
|
||||
version = "1.0"
|
||||
|
||||
val mainClassName = "com.example.Example"
|
||||
val mainClassName = "com.example.App"
|
||||
val processorJar = "net.thauvin.erik:semver:1.2.0"
|
||||
|
||||
dependencies {
|
||||
|
@ -42,4 +42,9 @@ val example = project {
|
|||
application {
|
||||
mainClass = mainClassName
|
||||
}
|
||||
|
||||
application {
|
||||
taskName = "runExample"
|
||||
mainClass = "com.example.Example"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
kobalt.version=1.0.122
|
||||
kobalt.version=1.0.123
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.8.0</version>
|
||||
<version>3.8.1</version>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
|
@ -56,7 +56,7 @@
|
|||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<mainClass>com.example.Example</mainClass>
|
||||
<mainClass>com.example.App</mainClass>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
|
|
@ -9,7 +9,7 @@ import java.util.Date;
|
|||
|
||||
public final class ExampleVersion {
|
||||
public static final String PROJECT = "Java Example";
|
||||
public static final Date BUILDDATE = new Date(1556420335650L);
|
||||
public static final Date BUILDDATE = new Date(1558817026391L);
|
||||
public static final String VERSION = "8.4.97-alpha+T800";
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
* This file is automatically generated.
|
||||
* Do not modify! -- ALL CHANGES WILL BE ERASED!
|
||||
*/
|
||||
|
||||
package com.example;
|
||||
|
||||
import java.util.Date;
|
||||
|
@ -12,17 +13,17 @@ import java.util.Date;
|
|||
* @author <a href="https://github.com/ethauvin/semver">Semantic Version Annotation Processor</a>
|
||||
*/
|
||||
public final class GeneratedVersion {
|
||||
public final static String PROJECT = "Java App";
|
||||
public final static Date BUILDDATE = new Date(1556420335600L);
|
||||
public final static int MAJOR = 11;
|
||||
public final static int MINOR = 11;
|
||||
public final static int PATCH = 20;
|
||||
public final static String PRERELEASE = "beta";
|
||||
public final static String PRERELEASE_PREFIX = "-";
|
||||
public final static String BUILDMETA = "007";
|
||||
public final static String BUILDMETA_PREFIX = "+";
|
||||
public final static String SEPARATOR = ".";
|
||||
public final static String VERSION = "11.11.20-beta+007";
|
||||
public static final String PROJECT = "Java App";
|
||||
public static final Date BUILDDATE = new Date(1558817026346L);
|
||||
public static final int MAJOR = 11;
|
||||
public static final int MINOR = 11;
|
||||
public static final int PATCH = 20;
|
||||
public static final String PRERELEASE = "beta";
|
||||
public static final String PRERELEASE_PREFIX = "-";
|
||||
public static final String BUILDMETA = "007";
|
||||
public static final String BUILDMETA_PREFIX = "+";
|
||||
public static final String SEPARATOR = ".";
|
||||
public static final String VERSION = "11.11.20-beta+007";
|
||||
|
||||
/**
|
||||
* Disables the default constructor.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue