/
IntelliJ grade 업그레이드하기

IntelliJ grade 업그레이드하기


Sprint Boot 를 사용하려는데 gradle 버전이 낮다는 에러 발생

An exception occurred applying plugin request [id: 'org.springframework.boot', version: '2.5.0']
> Failed to apply plugin 'org.springframework.boot'.
   > Spring Boot plugin requires Gradle 6.8.x or 7.x. The current version is Gradle 6.7


해결

전역으로 영향을 주도록 설정하는 것 보다는 프로젝트마다 gradle 버전을 설정하는게 좋음.


Settings  → Build, Execution  → "Build Tolls" → Gradle 설정이 "gradle-wrapper.properties" 로 되어 있는지 확인


좌측의 폴더에서 gradle  → wrapper  → "gradle-wrapper.properties" 선택


파일의 설정중 distributionUrl 항목에 gradle 다운로드 URL 을 사용하려면 버전에 맞게 변경

6.9

distributionUrl=https\://services.gradle.org/distributions/gradle-6.9-bin.zip


7.0

distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip

Ref

Related content

gradle 에 추가한 의존성을 IntelliJ 에서 못 찾을 때
gradle 에 추가한 의존성을 IntelliJ 에서 못 찾을 때
More like this
gradle 로 Java application 빌드 환경 구성하기
gradle 로 Java application 빌드 환경 구성하기
More like this
명령행에서 스프링 프로젝트를 구성할 수 있는 springboot cli 사용법
명령행에서 스프링 프로젝트를 구성할 수 있는 springboot cli 사용법
More like this
maven TroubleShooting
maven TroubleShooting
More like this
nexus 3.1 설치
nexus 3.1 설치
More like this
logback 에서 spring framework log 가 출력되지 않을때
logback 에서 spring framework log 가 출력되지 않을때
More like this