새소식

Programming/Solving Errors

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

 

Spring 3.2.0과 Java 17 버전으로 프로젝트를 새로 생성하여 실행했는데,

실행 자체는 문제가 없었지만 콘솔에 아래와 같은 메시지가 출력되었다.

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.5/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

 

gradle의 버전이 맞지 않는다는 경고 메시지인데

무시하고 그냥 실행해도 되지만 굉장히 거슬리니 해결을 해보자.

 

 

 

상단 메뉴바에서 IntelliJ IDEA > Settings에 들어간다.

(윈도우는 File > Settings)

 

 

 

Build, Execution, Deployment의 Gradle을 선택하면 위와 같은 화면이 나오는데

Build and run using과 Run tests using이 기본값인 Gradle로 되어있다.

이 값을 IntelliJ IDEA로 변경한다.

 

 

 

적용 후 다시 실행해보면 아까와 같은 메시지 없이 정상적으로 동작하는 것을 볼 수 있다.

Contents

Copied URL!

Liked this Posting!