```tasks.getByName<Jar>("jar") { enabled...
# announcements
m
Copy code
tasks.getByName<Jar>("jar") {
    enabled = true
}

tasks.getByName<BootJar>("bootJar") {
    enabled = true
    manifest {
        attributes( "Main-Class" to "kr.co.korbit.gia.Application")
    }
    launchScript()
}
This is my bootJar configuration of kotlin SpringBoot Project: But "gradle bootJar" generate following error : FAILURE: Build failed with an exception. * What went wrong: Execution failed for task 'internalbootJar'.
Main class name has not been configured and it could not be resolved
* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 3s
t
You may ask in #C0B8ZTWE4 or #C19FD9681
p
Why have you defined the task at all ? It should work out of the box with the spring boot gradle plugin.