java
error-Your build is currently configured to use Java 17.0.7 and Gradle 6.8.
주다애
2023. 12. 5. 23:33
상황 : intellij에서 JDK 17 version 사용하여 java 프로젝트 생성 시 발생한 에러.
Settings와 Project Structure에서 모두 JDK 17로 세팅해둔 상태
해결 : gradle-wrapper.properites의 distributionUrl의 gradle 버전 7.6으로 변경

원래는 gradle 6.8이었던 것을 7.6으로 변경

빌드 성공!
참고자료
https://docs.gradle.org/7.3/release-notes.html#java17
Gradle 7.3 Release Notes
Gradle Release Notes Version 7.3 The Gradle team is excited to announce Gradle 7.3. This release introduces a declarative test suite API for JVM projects, adds support for building projects with Java 17, and updates the Scala plugin to support Scala 3. The
docs.gradle.org