[Gradle] Dynamic version cache 설정하기
ITWeb/개발일반 2017. 11. 2. 21:45지난 글과 함께 보시면 좋습니다.
[지난 글]
[Gradle] Dependency filename 구하기
[Gradle] Use latest version on dependency jar.
[참고문서]
https://docs.gradle.org/current/dsl/org.gradle.api.artifacts.ResolutionStrategy.html
[설정]
configurations {
dependencyFn
}
configurations.dependencyFn {
resolutionStrategy.cacheDynamicVersionsFor 10, 'minutes'
}
dependencies {
dependencyFn group: "org.apaceh.lucene.analysis.arirang", name: "arirang-dictionary", \
version: "+", changing: true
}