[Spring] Gradle: implementation vs api vs testImplementation

brandon·2024년 6월 6일

차이점이 뭘까?

implementation

implementation 이 사용되면 사용된 모듈만 다시 빌드 되고 본 모듈에 의존하는 다른 모듈들은 빌드되지 않는다.

api

api 가 사용되면 사용된 모듈에 의존하는 모든 모듈들이 다시 빌드 된다.

testImplementation

testImplementation을 사용해 추가된 library는 오로지 testing 할때만 사용된다.

reference:
https://cantcoding.tistory.com/59

profile
everything happens for a reason

0개의 댓글