환경
- IntelliJ
- Gradle 3.3.0
- Java 21
에러
Project 설정은 모두 자바 21 버전으로 바꿨는데 인식을 못했던 문제
intellij 에서 A problem occurred configuring root project 'sbb'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.3.0.
Required by:
project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.3.0
> No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.3.0 was found. The consumer was configured to find a library for use during runtime, compatible with Java 11, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.7' but:
- Variant 'apiElements' 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 11
해결
Gradle JVM 에서도 자바 버전을 21로 맞춰야한다.
'Web > Spring' 카테고리의 다른 글
[JPA] M:N 관계 (@ManyToMany) (2) | 2024.01.30 |
---|---|
[Spring Security] OAuth, JWT .. 적용기 (1) (0) | 2024.01.05 |
[Exception Handler] Java, SpringBoot 에서의 예외 처리 (0) | 2023.12.23 |