문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 마지막 판 양쪽 다음 판 | ||
gradle:dependencies [2015/09/22 15:55] kwon37xi [configuration 다루기] |
gradle:dependencies [2019/06/03 15:59] kwon37xi |
||
---|---|---|---|
줄 669: | 줄 669: | ||
리포지토리 설정 상태에 따라 캐시의 싱크가 안 맞을 수도 있다. 리포지토리를 잘못 설정했거나, | 리포지토리 설정 상태에 따라 캐시의 싱크가 안 맞을 수도 있다. 리포지토리를 잘못 설정했거나, | ||
- | '' | + | '' |
==== 의존성 캐시 세부 설정 ==== | ==== 의존성 캐시 세부 설정 ==== | ||
줄 690: | 줄 690: | ||
===== provided ===== | ===== provided ===== | ||
+ | * Gradle 2.x 에서 최종적으로 '' | ||
+ | * [[https:// | ||
+ | * 따라서 아래 방법들은 Gradle 구버전에서만 사용하고 최신 버전에서는 '' | ||
+ | * '' | ||
+ | < | ||
+ | sourceSets { | ||
+ | test.compileClasspath += configurations.compileOnly | ||
+ | test.runtimeClasspath += configurations.compileOnly | ||
+ | } | ||
+ | |||
+ | // 혹은 | ||
+ | configurations { | ||
+ | testImplementation.extendsFrom compileOnly | ||
+ | } | ||
+ | </ | ||
+ | |||
아래 모든 방법들을 사용하기 보다는 [[gradle: | 아래 모든 방법들을 사용하기 보다는 [[gradle: | ||
* [[http:// | * [[http:// | ||
줄 772: | 줄 788: | ||
./gradlew dependencyInsight --configuration testCompile --dependency junit | ./gradlew dependencyInsight --configuration testCompile --dependency junit | ||
</ | </ | ||
+ | |||
+ | ===== CompositeBuild ===== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * '' | ||
+ | includeBuild ' | ||
+ | </ | ||
+ | |||
+ | ===== Source Dependency ===== | ||
+ | * [[https:// | ||
===== 참조할 DSL ===== | ===== 참조할 DSL ===== | ||
줄 780: | 줄 807: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | |||
+ | |||
+ | ===== Dependency Management Plugin ===== | ||
+ | https:// | ||
+ | |||
+ |