DolphaGo/TIL

Could not resolve all files for configuration ':testCompileClasspath'

Opened this issue · 0 comments

gradle build시 다음과 같은 에러가 났을 경우가 있다.

Execution failed for task ':compileTestJava'.
> Could not resolve all files for configuration ':testCompileClasspath'.
   > Could not find org.springframework.security:spring-sercurity-test:.
     Required by:
         project :

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

나같은 경우엔 테스트 쪽에서 오류가 났던 문제다.

https://docs.gradle.org/current/userguide/declaring_repositories.html
뭐 찾아봐도 뚜렷한 답이 안나오는 것 같음.

테스트 코드 작성한 게 없어서 일단은 테스트 라이브러리를 제거하니 사라졌다.

또는 빌드 옵션에서 테스트를 스킵하고 빌드하는 방식으로 해도 된다.

-DskipTests