본문 바로가기

Back-End/SpringBoot

Failed to resolve org.junit.platform:junit-platform-launcher

스프링 개발환경에서 test케이스에서 우클릭해서 실행했을때

아래와 같은 오류가 발생했다.

 

Failed to resolve org.junit.platform:junit-platform-launcher:1.8.2

 

이게 아직까지 고쳐지지 않은 잔버그 인 것 같다.

gradle에 아래 내용 추가하면 해결된다.

dependencies {
   implementation 'org.springframework.boot:spring-boot-starter'
   testImplementation 'org.springframework.boot:spring-boot-starter-test'
   testRuntimeOnly "org.junit.platform:junit-platform-launcher:1.8.2"
}

다른 환경에서는 launcher를 dependencies에 넣어주지 않아도 test가 잘 돌아서 찾아보려고 했는데

검색해봐도 pom.xml에 dependency 추가하는 방법말고는 발견 못했고 intellj 업데이트 등 이것저것 해보았으나 해결하지 못해서 dependencies에서 추가하는걸로 끝냈다.

'Back-End > SpringBoot' 카테고리의 다른 글

Servlet Request Param String to ZoneDateTime  (0) 2022.04.12
네이버 OAuth 2.0 로그인 설정  (0) 2020.04.30
구글 OAuth 2.0 로그인 설정  (0) 2020.04.30
인텔리제이 설치  (0) 2020.04.24