inblog logo
|
Coding_study
    Spring

    Spring-TiStory 프로젝트 세팅 (Gradle)

    yuzu sim's avatar
    yuzu sim
    Sep 06, 2024
    Spring-TiStory 프로젝트 세팅 (Gradle)

     
    프젝 셋팅하려는데 오류가 뜸
    notion image
    notion image
     
    오잉?? 버전이 안맞다고!! 버전에 맞는 Gradle 찾기
    이 오류 메시지는 현재 프로젝트가 Java 21.0.2를 사용하도록 설정되어 있지만, 사용하는 Gradle 버전(7.4.1)이 Java 21을 지원하지 않기 때문에 발생합니다. Gradle 7.4.1은 Java 21을 지원하지 않으므로 이 문제를 해결하려면 다음과 같은 두 가지 해결 방법을 고려할 수 있습니다.
     

    1. 사용하는 Java Version에 맞는 Gradle 찾기

    Compatibility Matrix
    The sections below describe Gradle’s compatibility with several integrations. Versions not listed here may or may not work.
    Compatibility Matrix
    https://docs.gradle.org/current/userguide/compatibility.html
     
    notion image
     

    2. Gradle 버전을 8.5로 업그레이드

    Java 21을 계속 사용하고 싶다면 Gradle을 최신 버전인 8.5로 업그레이드해야 합니다.
    Gradle 8.5는 Java 21을 지원합니다.
    • 프로젝트의 gradle-wrapper.properties 파일을 엽니다.
    • distributionUrl 속성을 다음과 같이 수정합니다:
      • distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
    • 변경 사항을 저장한 후 프로젝트를 다시 로드하거나 Gradle을 재설정합니다.
     
    프젝 셋팅에서 이리저리 찾아 봤는데 한참을 안나와서 콘솔창 컨트롤 클릭

    창이 뜸

    notion image
     
    notion image
    💡
    나는 21을 사용하기 때문에 8.5를 적용
     
    Share article

    Coding_study

    RSS·Powered by Inblog