summaryrefslogtreecommitdiffhomepage
path: root/ui/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'ui/build.gradle')
-rw-r--r--ui/build.gradle10
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/build.gradle b/ui/build.gradle
index a5e7b4fa..2c2a3fa8 100644
--- a/ui/build.gradle
+++ b/ui/build.gradle
@@ -1,3 +1,5 @@
+import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
+
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
@@ -82,13 +84,11 @@ dependencies {
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:$desugarVersion"
}
-tasks.withType(JavaCompile) {
+tasks.withType(JavaCompile).configureEach {
options.compilerArgs << '-Xlint:unchecked'
options.deprecation = true
}
-tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
- kotlinOptions {
- jvmTarget = JavaVersion.VERSION_1_8
- }
+tasks.withType(KotlinCompile).configureEach {
+ kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
}