CLeaned up examples.

This commit is contained in:
Erik C. Thauvin 2021-06-18 19:41:38 -07:00
parent 5a422fe502
commit 8c5f4a72fa
17 changed files with 38 additions and 37 deletions

View file

@ -1,2 +1,2 @@
[*]
insert_final_newline=true
insert_final_newline = true

View file

@ -27,6 +27,6 @@ dependencies {
}
tasks.withType(JavaCompile) {
options.annotationProcessorGeneratedSourcesDirectory = file("${projectDir}/src/generated/java")
options.compilerArgs += [ "-Asemver.project.dir=${projectDir}/example" ]
options.generatedSourceOutputDirectory.set(file("${projectDir}/src/generated/java"))
options.compilerArgs += ["-Asemver.project.dir=${projectDir}/example"]
}

View file

@ -2,7 +2,7 @@
* This file is automatically generated.
* Do not modify! -- ALL CHANGES WILL BE ERASED!
*/
package com.example;
import java.util.Date;

View file

@ -6,7 +6,7 @@ import java.text.SimpleDateFormat;
import java.util.Locale;
@Version(properties = "example.properties", template = "example.mustache", className = "ExampleVersion",
keysPrefix = "example.")
keysPrefix = "example.")
public final class Example {
/**
* Command line interface.
@ -19,7 +19,7 @@ public final class Example {
System.out.println("-- From Example -------------------------------------");
System.out.println(" " + ExampleVersion.PROJECT + ' ' + ExampleVersion.VERSION
+ " (" + sdf.format(ExampleVersion.BUILDDATE) + ')');
+ " (" + sdf.format(ExampleVersion.BUILDDATE) + ')');
System.out.println("-----------------------------------------------------");
}