Gradle

Error while evaluating property 'mainClass' of task ':bootJar'

잔망루피 2023. 4. 7. 18:34
반응형
* 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 클래스가 없기 때문에 필요한 코드다.

 

 

 

참고 👇

https://velog.io/@devduhan/Spring%ED%94%84%EB%A1%9C%EC%A0%9D%ED%8A%B8-Gradle-MultiModule-%EC%84%B8%ED%8C%85

 

[Spring][프로젝트] Gradle MultiModule 세팅

Gradle MultiModule 세팅하기 그레이들 멀티모듈을 세팅하며 헷갈리고 어려웠던 부분을 정리합니다. > 모듈간 참조 그림 누구든 상품을 판매할 수 있는 마켓컨셉의 웹애플리케이션 빌드 에러 발생 위

velog.io

 

반응형

'Gradle' 카테고리의 다른 글

Task 'prepareKotlinBuildScriptModel' not found in project ':proto'.  (0) 2023.03.21
Gradle 7.1  (0) 2023.03.19