Rewrite android sdk dependencies to avoid config-time tasks execution

This commit is contained in:
Ilya Chernikov
2017-12-01 17:08:54 +01:00
committed by Vyacheslav Gerasimov
parent febab82c7e
commit 46be5e25be
6 changed files with 63 additions and 39 deletions
@@ -87,7 +87,9 @@ tasks.withType(Test) {
if (mavenLocalRepo != null) {
systemProperty("maven.repo.local", mavenLocalRepo)
}
systemProperty("android.sdk", project.configurations["androidSdk"].singleFile.getCanonicalPath())
doFirst {
systemProperty("android.sdk", project.configurations["androidSdk"].singleFile.getCanonicalPath())
}
testLogging {
// set options for log level LIFECYCLE