강의

멘토링

커뮤니티

Inflearn Community Q&A

sheeev6770's profile image
sheeev6770

asked

Spring MVC Part 1 - Core technologies for backend web development

Create Project

스프링부트 버전이 오르면서 오류가 뜹니다

Written on

·

5.3K

0

스프링부트 버전이 3.0.0으로 오르면서

Gradle이 groovy와 kotlin으로 세분화 되었습니다.

뭘 선택해야 될지 모르겠고

 

프로젝트 로딩 시

No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.0.0 was found.

the consumer was configured to find a runtime of a library compatible with Java 16, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.5.1' but: ...

이렇게 뜹니다. 자바 16쓰고 있는데 17버전으로 올려야 할까요? 강의 듣는데 문제가 생길 것 같아 걱정이 됩니다.

springMVC

Answer 2

2

저도 같은문제가 발생했었는데 gradle-groovy선택하시고

build.gradle에서 스프링 부트 버전을 2.7.4로 바꾸고 돌고래 누르니깐 Run은 잘 됐습니다.

저도 오류의 원인은 몰라서 임시방편으로 알려드립니다..


 

https://www.inflearn.com/questions/699978

jecenter 인증서가 어제 만료되서 현재 문제가 있다고 합니다.

위 링크의 답글에 해결책이 있습니다!

 

1

aae님의 프로필 이미지
aae
Questioner

알려주신대로 스프링부트 버전 2.7.4로 바꾸고

settings.gradle 파일에 코드 추가 했더니

  • The pluginManagement {} block must appear before any other statements in the script.

다음과 같이 뜹니다.

  1. 스프링부트 버전 2.7.4로 바꾸기

2. settings.gradle 파일에 코드 추가 (추천)

두 가지 방법 중 1개만 해보세요 ~

aae님의 프로필 이미지
aae
Questioner

settings.gradle만 바꾸면 마찬가지로 에러 뜨구

버전만 바꾸니까 되네요. 감사합니다!

sheeev6770's profile image
sheeev6770

asked

Ask a question