* What went wrong: Execution failed for task ':bootJar'. > Error while evaluating property 'mainClass' of task ':bootJar' > Failed to calculate the value of task ':bootJar' property 'mainClass'. > Main class name has not been configured and it could not be resolved
bootJar {
enabled = false
}
root 모듈의 build.gradle에 위의 코드를 추가했다.
root 모듈에 main 클래스가 없기 때문에 필요한 코드다.
참고 👇
반응형
'Gradle' 카테고리의 다른 글
Task 'prepareKotlinBuildScriptModel' not found in project ':proto'. (0) | 2023.03.21 |
---|---|
Gradle 7.1 (0) | 2023.03.19 |