작성자 없음
작성자 정보가 삭제된 글입니다.
작성
·
622
·
수정됨
0
C:\Users\Yoon>cd C:\Users\Yoon\Desktop\CS\SpringStudy\hello-spring
C:\Users\Yoon\Desktop\CS\SpringStudy\hello-spring>gradlew.bat build
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'hello-spring'.
> Could not resolve all files for configuration ':classpath'.
> Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.2.1.
Required by:
project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.2.1
> No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.2.1 was found. The consumer was configured to find a library for use during runtime, compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.5' but:
- Variant 'apiElements' capability org.springframework.boot:spring-boot-gradle-plugin:3.2.1 declares a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component for use during compile-time, compatible with Java 17 and the consumer needed a component for use during runtime, compatible with Java 8
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '8.5')
- Variant 'javadocElements' capability org.springframework.boot:spring-boot-gradle-plugin:3.2.1 declares a component for use during runtime, and its dependencies declared externally:
- Incompatible because this component declares documentation and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its target Java version (required compatibility with Java 8)
- Doesn't say anything about its elements (required them packaged as a jar)
- Doesn't say anything about org.gradle.plugin.api-version (required '8.5')
- Variant 'mavenOptionalApiElements' capability org.springframework.boot:spring-boot-gradle-plugin-maven-optional:3.2.1 declares a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component for use during compile-time, compatible with Java 17 and the consumer needed a component for use during runtime, compatible with Java 8
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '8.5')
- Variant 'mavenOptionalRuntimeElements' capability org.springframework.boot:spring-boot-gradle-plugin-maven-optional:3.2.1 declares a library for use during runtime, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component, compatible with Java 17 and the consumer needed a component, compatible with Java 8
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '8.5')
- Variant 'runtimeElements' capability org.springframework.boot:spring-boot-gradle-plugin:3.2.1 declares a library for use during runtime, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component, compatible with Java 17 and the consumer needed a component, compatible with Java 8
- Other compatible attribute:
- Doesn't say anything about org.gradle.plugin.api-version (required '8.5')
- Variant 'sourcesElements' capability org.springframework.boot:spring-boot-gradle-plugin:3.2.1 declares a component for use during runtime, and its dependencies declared externally:
- Incompatible because this component declares documentation and the consumer needed a library
- Other compatible attributes:
- Doesn't say anything about its target Java version (required compatibility with Java 8)
- Doesn't say anything about its elements (required them packaged as a jar)
- Doesn't say anything about org.gradle.plugin.api-version (required '8.5')
* 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.
BUILD FAILED in 5s
"빌드하고 실행하기" 강의에서 위 에러가 발생하였습니다.
우선 저는 윈도우 사용자입니다.
java --version으로 확인해봐도 Java 17버전이고, 설정 가능한 모든 부분에서 17버전으로 바꿨는데도 에러가 발생합니다.
파일 링크 : https://drive.google.com/file/d/1hnY1DJJ-9loR_mcQBum97NDgOErGgoMO/view?usp=drive_link
답변 2
0
안녕하세요. liltjay님
파일을 다운로드 받으려고 하는데, 권한이 없습니다.
다음을 참고해서 권한을 풀어주세요.
추가로 다음 내용들도 한번 검토해보시면 도움이 되실거에요.
https://jojoldu.tistory.com/698
감사합니다.
0
안녕하세요, 인프런 AI 인턴입니다.
liltjay님의 질문은 스프링 부트 프로젝트의 빌드 과정에서 발생한 오류와 관련이 있습니다. 이러한 오류는 일반적으로 Java 버전과 관련된 호환성 문제일 때 자주 발생합니다. 여기서 문제는 사용하고 있는 Java 버전과 스프링 부트 Gradle 플러그인이 요구하는 Java 버전 간의 불일치로 보입니다.
이와 유사한 오류를 해결한 기존 게시물들을 참고하여 문제를 해결해 보시기 바랍니다. 아래 링크는 유사한 오류와 관련된 질문을 다루고 있으며, 이를 참조하시면 도움이 될 것입니다.
제목: 프로젝트 생성 단계, build.gradle 오픈시 오류
프로젝트 생성 단계, build.gradle 오픈시 오류
제목: cmd gradlew 빌드 오류
cmd gradlew 빌드 오류
제목: 첫 프로젝트 빌드시..
첫 프로젝트 빌드시..
해당 게시물들을 참조하여 IDE 설정을 확인하고 Java 버전을 변경하는 등의 조치를 취해 보시기 바랍니다.
안녕하세요. 방금 권한 수정하였습니다. 감사합니다!
https://drive.google.com/file/d/1hnY1DJJ-9loR_mcQBum97NDgOErGgoMO/view