Here’s my entire project definition:
plugins {
kotlin("jvm") version "1.9.0"
}
group = "com.example"
version = "0.0.1"
repositories.mavenCentral()
tasks {
jar {
manifest {
attributes("Main-Class" to "com.example.ApplicationKt")
}
}
}
I’d expect to see Main-Class attr in the manifest of the generated jar, but manifest only contains this:
Manifest-Version: 1.0
Implementation-Title: demo
Implementation-Version: 0.0.1
What am I doing wrong? How to properly configure manifest?