CLeaned up examples.
This commit is contained in:
parent
5a422fe502
commit
8c5f4a72fa
17 changed files with 38 additions and 37 deletions
|
@ -1,2 +1,2 @@
|
|||
[*]
|
||||
insert_final_newline=true
|
||||
insert_final_newline = true
|
||||
|
|
|
@ -31,6 +31,7 @@ kapt {
|
|||
repositories {
|
||||
mavenLocal()
|
||||
mavenCentral()
|
||||
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") }
|
||||
}
|
||||
|
||||
application {
|
||||
|
@ -40,7 +41,7 @@ application {
|
|||
tasks {
|
||||
register("runJava", JavaExec::class) {
|
||||
group = "application"
|
||||
main = "com.example.JavaApp"
|
||||
mainClass.set("com.example.JavaApp")
|
||||
classpath = sourceSets.main.get().runtimeClasspath
|
||||
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ public final class JavaExample {
|
|||
System.out.println("-- From JavaExample -----------------------------------");
|
||||
|
||||
System.out.println(" " + ExampleVersion.PROJECT + ' ' + ExampleVersion.VERSION
|
||||
+ " (" + sdf.format(ExampleVersion.BUILDDATE) + ')');
|
||||
+ " (" + sdf.format(ExampleVersion.BUILDDATE) + ')');
|
||||
|
||||
System.out.println("-------------------------------------------------------");
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ import java.text.SimpleDateFormat
|
|||
import java.util.Locale
|
||||
|
||||
@Version(properties = "example.properties", type = "kt", template = "example.mustache", className = "ExampleVersion",
|
||||
keysPrefix = "example.")
|
||||
keysPrefix = "example.")
|
||||
class Example {
|
||||
companion object {
|
||||
@JvmStatic
|
||||
|
@ -15,7 +15,7 @@ class Example {
|
|||
println("-------------------------------------------------------")
|
||||
|
||||
println(" ${ExampleVersion.PROJECT} ${ExampleVersion.VERSION} ("
|
||||
+ sdf.format(ExampleVersion.BUILDDATE) + ')')
|
||||
+ sdf.format(ExampleVersion.BUILDDATE) + ')')
|
||||
|
||||
println("-------------------------------------------------------")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue