Back-End/SpringBoot
Failed to resolve org.junit.platform:junit-platform-launcher
피고녀
2022. 1. 3. 19:19
스프링 개발환경에서 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에서 추가하는걸로 끝냈다.