Skip to content

"no main manifest attribute" Kotlin, Gradle #1831

Answered by emortaldev
zax71 asked this question in Help
Discussion options

You must be logged in to vote

https://wiki.minestom.net/setup/your-first-server#build-the-server-jar
which on .kts is equivalent to

tasks {
    named<ShadowJar>("shadowJar") {
        manifest {
            attributes (
                "Main-Class" to "me.zax71.stomKor.MainKt",
                "Multi-Release" to true
            )
        }
    }
}

(Since you're using Kotlin, you have to append "Kt")
btw your package name should be lowercase

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@zax71
Comment options

Comment options

You must be logged in to vote
3 replies
@zax71
Comment options

@ThatOneToast
Comment options

@ThatOneToast
Comment options

Answer selected by zax71
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants