Skip to content
Discussion options

You must be logged in to vote

Through the power of trial and error, I found a Kotlin code solution that does not produce the warning:

import io.quarkus.runtime.Quarkus
import io.quarkus.runtime.annotations.QuarkusMain

@QuarkusMain
class ApplicationStartup {
	companion object {
		@JvmStatic
		fun main(args: Array<String>) {
			Quarkus.run(*args)
		}
	}
}

And this seems to be a way to declare a code block like the second one mentioned in the guide, but in Kotlin:

import io.quarkus.runtime.Quarkus
import io.quarkus.runtime.QuarkusApplication
import io.quarkus.runtime.annotations.QuarkusMain

@QuarkusMain
class ApplicationStartup {
	companion object {
		@JvmStatic
		fun main(args: Array<String>) {
			println("Running Ap…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jehrenzweig-leagueapps
Comment options

You must be logged in to vote
1 reply
@jehrenzweig-leagueapps
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants