Skip to content

Commit 3a3e240

Browse files
committed
Merge pull request #23418 from fernandezseb
* gh-23418: Polish "Add note about Kotlin main class name" Add note about Kotlin main class name Closes gh-23418
2 parents a8c179e + 360e29a commit 3a3e240

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +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: If the main class is written in Kotlin, the name of the generated Java class should be used.
158+
By default, this is the name of the Kotlin class with the `Kt` suffix added.
159+
For example, `ExampleApplication` becomes `ExampleApplicationKt`.
160+
If another name is defined using `@JvmName` then that name should be used.
157161

158162
[[packaging-executable-configuring-excluding-devtools]]
159163
==== Excluding Devtools

0 commit comments

Comments
 (0)