Mgkaki
06/02/2020, 6:33 AMtasks.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
tseisel
06/02/2020, 9:29 AMPaul N
06/02/2020, 3:45 PM