문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
gradle:dependencies [2019/03/23 13:20] kwon37xi |
gradle:dependencies [2020/09/01 12:31] (현재) kwon37xi [파일 의존성] |
||
---|---|---|---|
줄 278: | 줄 278: | ||
runtime files(' | runtime files(' | ||
runtime files(' | runtime files(' | ||
+ | runtime rootProject.files(' | ||
runtime fileTree(dir: | runtime fileTree(dir: | ||
} | } | ||
줄 693: | 줄 694: | ||
* [[https:// | * [[https:// | ||
* 따라서 아래 방법들은 Gradle 구버전에서만 사용하고 최신 버전에서는 '' | * 따라서 아래 방법들은 Gradle 구버전에서만 사용하고 최신 버전에서는 '' | ||
+ | * '' | ||
+ | < | ||
+ | sourceSets { | ||
+ | test.compileClasspath += configurations.compileOnly | ||
+ | test.runtimeClasspath += configurations.compileOnly | ||
+ | } | ||
+ | // 혹은 | ||
+ | configurations { | ||
+ | testImplementation.extendsFrom compileOnly | ||
+ | } | ||
+ | </ | ||
아래 모든 방법들을 사용하기 보다는 [[gradle: | 아래 모든 방법들을 사용하기 보다는 [[gradle: | ||
줄 797: | 줄 809: | ||
* [[http:// | * [[http:// | ||
- | ===== Plugin Dependency Repository ===== | ||
- | * Gradle plugin 을 가져오는 repository 를 명시적으로 지정하고자 한다면 '' | ||
- | |||
- | <code groovy> | ||
- | pluginManagement { | ||
- | repositories { | ||
- | maven { url " | ||
- | gradlePluginPortal() // https:// | ||
- | } | ||
- | } | ||
- | </ | ||
- | |||
- | * 자신의 repository ([[: | ||
===== Dependency Management Plugin ===== | ===== Dependency Management Plugin ===== |