Commit 360e29af authored by Andy Wilkinson's avatar Andy Wilkinson

Polish "Add note about Kotlin main class name"

See gh-23418
parent 0bde5fda
...@@ -154,11 +154,10 @@ include::../gradle/packaging/boot-jar-manifest-main-class.gradle[tags=main-class ...@@ -154,11 +154,10 @@ include::../gradle/packaging/boot-jar-manifest-main-class.gradle[tags=main-class
include::../gradle/packaging/boot-jar-manifest-main-class.gradle.kts[tags=main-class] include::../gradle/packaging/boot-jar-manifest-main-class.gradle.kts[tags=main-class]
---- ----
NOTE: Although the use of Kotlin is demonstrated in some examples above, a main class written in Java is assumed. NOTE: If the main class is written in Kotlin, the name of the generated Java class should be used.
If however the main class is written in Kotlin, the name of the generated Java class should be used.
By default, this is the name of the Kotlin class with the `Kt` suffix added. By default, this is the name of the Kotlin class with the `Kt` suffix added.
For example: `ExampleApplication` becomes `ExampleApplicationKt`. For example, `ExampleApplication` becomes `ExampleApplicationKt`.
(If another name is defined using the `@JvmName` annotation, then that name should be used.) If another name is defined using `@JvmName` then that name should be used.
[[packaging-executable-configuring-excluding-devtools]] [[packaging-executable-configuring-excluding-devtools]]
==== Excluding Devtools ==== Excluding Devtools
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment