alexey.tsvetkov
04/27/2017, 2:13 PMkotlin-android is used, the tasks are not available during script evaluation.
You can refer to compileKotlin in project.afterEvaluate { compileKotlin }.
On the other hand if you want to set suppressWarnings for the whole project, you can just use kotlinOptions extension in android block.
android {
kotlinOptions.suppressWarnings = true
}deviant
04/27/2017, 2:24 PMproject.afterEvaluate {
compileKotlin {
kotlinOptions {
suppressWarnings = true
}
}
}alexey.tsvetkov
04/27/2017, 3:51 PM./gradlew tasks)? On Android tasks are named "compile<VARIANT_NAME>Kotlin".alexey.tsvetkov
04/27/2017, 3:52 PM