Skip to content

Commit

Permalink
Updated examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
ethauvin committed May 25, 2019
1 parent 4e02950 commit 90df90e
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 20 deletions.
2 changes: 1 addition & 1 deletion examples/java/build.gradle
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion examples/java/kobalt/src/Build.kt
Expand Up @@ -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 {
Expand All @@ -42,4 +42,9 @@ val example = project {
application {
mainClass = mainClassName
}

application {
taskName = "runExample"
mainClass = "com.example.Example"
}
}
2 changes: 1 addition & 1 deletion examples/java/kobalt/wrapper/kobalt-wrapper.properties
@@ -1 +1 @@
kobalt.version=1.0.122
kobalt.version=1.0.123
4 changes: 2 additions & 2 deletions examples/java/pom.xml
Expand Up @@ -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>
Expand Down Expand Up @@ -56,7 +56,7 @@
</execution>
</executions>
<configuration>
<mainClass>com.example.Example</mainClass>
<mainClass>com.example.App</mainClass>
</configuration>
</plugin>
</plugins>
Expand Down
Expand Up @@ -9,7 +9,7 @@

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";

/**
Expand Down
23 changes: 12 additions & 11 deletions examples/java/src/generated/java/com/example/GeneratedVersion.java
Expand Up @@ -2,6 +2,7 @@
* This file is automatically generated.
* Do not modify! -- ALL CHANGES WILL BE ERASED!
*/

package com.example;

import java.util.Date;
Expand All @@ -12,17 +13,17 @@
* @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.
Expand Down
6 changes: 3 additions & 3 deletions examples/kotlin/build.gradle.kts
@@ -1,7 +1,7 @@
plugins {
kotlin("jvm").version("1.3.30")
kotlin("jvm").version("1.3.31")
application
id("org.jetbrains.kotlin.kapt").version("1.3.30")
id("org.jetbrains.kotlin.kapt").version("1.3.31")
id("com.github.ben-manes.versions").version("0.21.0")
}

Expand All @@ -13,7 +13,7 @@ plugins {

defaultTasks(ApplicationPlugin.TASK_RUN_NAME)

var semverProcessor = "net.thauvin.erik:semver:1.2.0"
val semverProcessor = "net.thauvin.erik:semver:1.2.0"

dependencies {
kapt(semverProcessor)
Expand Down

0 comments on commit 90df90e

Please sign in to comment.