문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 | 마지막 판 양쪽 다음 판 | ||
gradle:dependencies [2019/06/03 15:48] kwon37xi |
gradle:dependencies [2019/06/03 15:59] kwon37xi |
||
---|---|---|---|
줄 693: | 줄 693: | ||
* [[https:// | * [[https:// | ||
* 따라서 아래 방법들은 Gradle 구버전에서만 사용하고 최신 버전에서는 '' | * 따라서 아래 방법들은 Gradle 구버전에서만 사용하고 최신 버전에서는 '' | ||
+ | * '' | ||
< | < | ||
- | compileOnly(' | + | sourceSets { |
- | testCompileOnly(' | + | test.compileClasspath += configurations.compileOnly |
+ | test.runtimeClasspath += configurations.compileOnly | ||
+ | } | ||
+ | |||
+ | // 혹은 | ||
+ | configurations { | ||
+ | testImplementation.extendsFrom compileOnly | ||
+ | } | ||
</ | </ | ||