Skip to content

Commit 360e29a

Browse files
committed
Polish "Add note about Kotlin main class name"
See gh-23418
1 parent 0bde5fd commit 360e29a

File tree

1 file changed

+3
-4
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/asciidoc

1 file changed

+3
-4
lines changed

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/asciidoc/packaging.adoc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,10 @@ include::../gradle/packaging/boot-jar-manifest-main-class.gradle[tags=main-class
154154
include::../gradle/packaging/boot-jar-manifest-main-class.gradle.kts[tags=main-class]
155155
----
156156

157-
NOTE: Although the use of Kotlin is demonstrated in some examples above, a main class written in Java is assumed.
158-
If however the main class is written in Kotlin, the name of the generated Java class should be used.
157+
NOTE: If the main class is written in Kotlin, the name of the generated Java class should be used.
159158
By default, this is the name of the Kotlin class with the `Kt` suffix added.
160-
For example: `ExampleApplication` becomes `ExampleApplicationKt`.
161-
(If another name is defined using the `@JvmName` annotation, then that name should be used.)
159+
For example, `ExampleApplication` becomes `ExampleApplicationKt`.
160+
If another name is defined using `@JvmName` then that name should be used.
162161

163162
[[packaging-executable-configuring-excluding-devtools]]
164163
==== Excluding Devtools

0 commit comments

Comments
 (0)