Main class name has not been configured and it could not be resolved
Trouble Shooting
This error happens on bootJar job.
Execution failed for task ':bootJar'.
> Main class name has not been configured and it could not be resolved
This is because there is no main class in DAO package. (in My case)
In my case, just add one line in dao/build.gradle
, and fixed.
bootJar.enabled = false
But, if there is exist main class, just set main class in build.gradle like
bootJar {
mainClassName = 'org.syaku.blog.Application'
}