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
tseisel
06/02/2020, 9:29 AM
You may ask in #C0B8ZTWE4 or #C19FD9681
p
Paul N
06/02/2020, 3:45 PM
Why have you defined the task at all ? It should work out of the box with the spring boot gradle plugin.