diff --git a/README.html b/README.html index 77983db..366701d 100644 --- a/README.html +++ b/README.html @@ -274,7 +274,7 @@ compileJava { options.compilerArgs << '-proc:none' }

The plugin implements a separate compile task that only runs the annotation processor and is executed during the build phase.

-

Please look at the build.gradle file in the example module directory for a sample.

+

Please look at the build.gradle file in the example module directory for a sample.

Kobalt

To install and run from Kobalt, add the following to the Build.kt file:

dependencies {
diff --git a/example/src/generated/java/net/thauvin/erik/semver/example/GeneratedVersion.java b/example/src/generated/java/net/thauvin/erik/semver/example/GeneratedVersion.java
index db420e7..52f93fd 100644
--- a/example/src/generated/java/net/thauvin/erik/semver/example/GeneratedVersion.java
+++ b/example/src/generated/java/net/thauvin/erik/semver/example/GeneratedVersion.java
@@ -7,13 +7,13 @@ package net.thauvin.erik.semver.example;
 import java.util.Date;
 
 /**
- * This class provides semantic version information.
+ * This GeneratedVersion class provides semantic version information.
  *
  * @author Semantic Version Annotation Processor
  */
 public final class GeneratedVersion {
 	private final static String buildmeta = "";
-	private final static Date date = new Date(1453950493893L);
+	private final static Date date = new Date(1454030788850L);
 	private final static int major = 3;
 	private final static int minor = 1;
 	private final static int patch = 37;
@@ -23,7 +23,7 @@ public final class GeneratedVersion {
    /**
      * Disables the default constructor.
      *
-     * @throws UnsupportedOperationException if the constructor is called.
+     * @throws UnsupportedOperationException If the constructor is called.
      */
     private GeneratedVersion()
             throws UnsupportedOperationException {
diff --git a/semver.iml b/semver.iml
index ad4fff5..42d20b1 100644
--- a/semver.iml
+++ b/semver.iml
@@ -1,5 +1,5 @@
 
-
+
   
     
     
diff --git a/src/main/resources/version.vm b/src/main/resources/version.vm
index 78cfdb5..656da09 100644
--- a/src/main/resources/version.vm
+++ b/src/main/resources/version.vm
@@ -1,3 +1,18 @@
+########################################################################################
+##
+## Available variables:
+##
+##         $packageName - The package name. (string)
+##         $className - The class name. (string)
+##         $project - The project name. (string)
+##         $epoch - The build epoch/unix time. (long)
+##         $major - The major version. (int)
+##         $minor - The minor version. (int)
+##         $patch - The patch version. (int)
+##         $prerelease - The pre-release version. (string)
+##         $buildmeta - The build metadata version. (string)
+##
+########################################################################################
 /*
  * This file is automatically generated by the Semantic Version Annotation Processor.
  * Do not modify this file -- YOUR CHANGES WILL BE ERASED!
@@ -7,7 +22,7 @@ package ${packageName};
 import java.util.Date;
 
 /**
- * This class provides semantic version information.
+ * This ${className} class provides semantic version information.
  *
  * @author Semantic Version Annotation Processor
  */
@@ -23,9 +38,9 @@ public final class ${className} {
    /**
      * Disables the default constructor.
      *
-     * @throws UnsupportedOperationException if the constructor is called.
+     * @throws UnsupportedOperationException If the constructor is called.
      */
-    private GeneratedVersion()
+    private ${className}()
             throws UnsupportedOperationException {
         throw new UnsupportedOperationException("Illegal constructor call.");
     }