728x90
300x250
Springboot 기반 프로젝트 진행을 위해 build.gradle을 작성하고 builid 했는데
자꾸 아래와 같이 에러가 나면서 Build Fail 되었다.
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.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.4/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 91ms
원인은 plugins에 넣은 spring F/W의 버전과 gradle의 버전이 서로 호환이 되지 않아서이다.
gradle 8.x는 스프링부트 2.7.x부터 지원이 가능하다고 한다.
현재 나의 gradle 버전은 8.x 이고
build.gradle에 넣었던 스프링부트 버전은 2.5.2였다.
스프링부트 버전을 2.7.x로 올리거나
gradle 버전을 낮춰주면 해결 ~
728x90