Spring
Spring boot Gradle 에러 'void org.gradle.api.internal.artifacts.dsl.LazyPublishArtifact.<init>(org.gradle.api.provider.Provider)'
한둥둥
2024. 12. 15. 20:59
FAILURE: Build failed with an exception.
* What went wrong:
'void org.gradle.api.internal.artifacts.dsl.LazyPublishArtifact.<init>(org.gradle.api.provider.Provider)'
* 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.
CONFIGURE FAILED in 4s
내 그래들 버전을 살펴보니 8.5였다. 그래들 버전 8.5는 스프링 2.x 버전과 호환이 되지 않아서 발생하는 오류였다.
plugins {
id 'org.springframework.boot' version '3.2.2'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
}
plugins 은 2.x 버전이 아닌 3.x 버전으로 바꿔주었다.
스프링 버전과 그래들의 호환성을 고려해줘야되는 것을 다시 한 번 상기 시키게 되었다.