forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that Kotlin implementation of QuarkusApplication works properly
Fixes: quarkusio#30190 Follows up on: quarkusio#30058 (which incorrectly checked for QuarkusApplication as a superclass) (cherry picked from commit d5fb7fc)
- Loading branch information
Showing
2 changed files
with
20 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
...tion-tests/gradle/src/main/resources/kotlin-grpc-project/src/main/kotlin/org/acme/Main.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.acme | ||
|
||
import io.quarkus.runtime.Quarkus | ||
import io.quarkus.runtime.QuarkusApplication | ||
import io.quarkus.runtime.annotations.QuarkusMain | ||
|
||
@QuarkusMain | ||
class Main : QuarkusApplication { | ||
|
||
@Throws(Exception::class) | ||
override fun run(vararg args: String?): Int { | ||
Quarkus.waitForExit() | ||
return 0 | ||
} | ||
} |