diff --git a/.idea/modules/examples-kotlin_main.iml b/.idea/modules/examples-kotlin_main.iml
index 7ea61a1..97684ce 100644
--- a/.idea/modules/examples-kotlin_main.iml
+++ b/.idea/modules/examples-kotlin_main.iml
@@ -6,7 +6,7 @@
-
+
diff --git a/.idea/modules/examples-kotlin_test.iml b/.idea/modules/examples-kotlin_test.iml
index de16718..6d0b0ae 100644
--- a/.idea/modules/examples-kotlin_test.iml
+++ b/.idea/modules/examples-kotlin_test.iml
@@ -6,7 +6,7 @@
-
+
diff --git a/build.gradle b/build.gradle
index c2caa18..eb6ce8e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -42,7 +42,11 @@ dependencies {
implementation 'com.github.spullara.mustache.java:compiler:0.9.6'
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.9.0'
- compileOnly 'com.github.spotbugs:spotbugs-annotations:3.1.11'
+ spotbugsPlugins 'com.mebigfatguy.fb-contrib:fb-contrib:7.4.3.sb'
+
+ compileOnly 'com.github.spotbugs:spotbugs-annotations:3.1.12'
+ testCompileOnly 'com.github.spotbugs:spotbugs-annotations:3.1.12'
+
testImplementation 'org.testng:testng:6.14.3'
}
@@ -156,14 +160,6 @@ tasks.withType(Checkstyle) {
}
}
-compileJava {
- options.compilerArgs.add('-proc:none')
-}
-
-compileTestJava {
- options.compilerArgs.add('-proc:none')
-}
-
bintrayUpload {
versionName = "$project.version"
versionDesc = "version $project.version"
diff --git a/examples/java/example.mustache b/examples/java/example.mustache
index f09599e..9279c7f 100644
--- a/examples/java/example.mustache
+++ b/examples/java/example.mustache
@@ -2,19 +2,20 @@
* This file is automatically generated.
* Do not modify! -- ALL CHANGES WILL BE ERASED!
*/
+
package {{packageName}};
import java.util.Date;
public final class {{className}} {
- public final static String PROJECT = "{{project}}";
- public final static Date BUILDDATE = new Date({{epoch}}L);
- public final static int MAJOR = {{major}};
- public final static int MINOR = {{minor}};
- public final static int PATCH = {{patch}};
- public final static String PRERELEASE = "{{preRelease}}";
- public final static String BUILDMETA = "{{buildMeta}}";
- public final static String VERSION = "{{version}}";
+ public static final String PROJECT = "{{project}}";
+ public static final Date BUILDDATE = new Date({{epoch}}L);
+ 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.
diff --git a/examples/java/src/generated/java/com/example/GeneratedVersion.java b/examples/java/src/generated/java/com/example/GeneratedVersion.java
index ef39f05..fdaf6f7 100644
--- a/examples/java/src/generated/java/com/example/GeneratedVersion.java
+++ b/examples/java/src/generated/java/com/example/GeneratedVersion.java
@@ -6,95 +6,20 @@ package com.example;
import java.util.Date;
-/**
- * Provides semantic version information.
- *
- * @author Semantic Version Annotation Processor
- */
public final class GeneratedVersion {
- public final static String PROJECT = "Example";
- public final static Date BUILDDATE = new Date(1554108013631L);
+ public final static String PROJECT = "Java Example";
+ public final static Date BUILDDATE = new Date(1555703771370L);
public final static int MAJOR = 2;
public final static int MINOR = 0;
public final static int PATCH = 52;
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 = "";
-
- /**
- * The full version string.
- *