Doesn't say anything about org.gradle.plugin.api-version (required '7.6')

2023. 1. 3. 18:55BackEnd(Java)/Spring Boot

 

현상

인텔리제이에서 빌드 시 아래 오류가 발생 하였음 

 

- Incompatible because this component declares an API of a component compatible with Java 17 and the consumer needed a runtime of a component compatible with Java 11

- Other compatible attribute:

- Doesn't say anything about org.gradle.plugin.api-version (required '7.6')

- Variant 'mavenOptionalRuntimeElements' capability org.springframework.boot:spring-boot-gradle-plugin-maven-optional:3.0.1 declares a runtime of a library, 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 11

- Other compatible attribute:

- Doesn't say anything about org.gradle.plugin.api-version (required '7.6')

 

해결

구글링을 통해 확인해보니 스프링 부트 3.x는 자바 17을 사용해야 버전 충돌이 안생김(Spring Bootg 3.0.1, Java 11 사용하니까 안됨..)

 

따라서 스프링 부트 버전을 3.0.1 -> 2.7.7로 변경후 빌드하닌깐 잘됨

 

 

참고자료

https://www.inflearn.com/questions/729189/%ED%94%84%EB%A1%9C%EC%A0%9D%ED%8A%B8-%EC%83%9D%EC%84%B1-%EB%8B%A8%EA%B3%84-build-gradle-%EC%98%A4%ED%94%88%EC%8B%9C-%EC%98%A4%EB%A5%98

반응형

'BackEnd(Java) > Spring Boot' 카테고리의 다른 글

스프링 IoC/DI 찍먹  (0) 2023.02.24
스프링 이벤트 처리  (0) 2023.01.20
@Async에 대한 이해  (0) 2022.11.21
javax.Transactional vs spring.Transactional  (0) 2022.09.17
@RequestBody, @RequestParam, @ModelAttribute  (0) 2022.06.26