diff --git a/build.gradle b/build.gradle index 2be3371e03..5c274053d9 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,5 @@ +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile + // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { @@ -90,7 +92,7 @@ allprojects { maven { url "https://maven.google.com" } maven { url 'https://jitpack.io' } } - tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all { + tasks.withType(KotlinCompile).all { kotlinOptions { freeCompilerArgs = [ '-opt-in=kotlin.RequiresOptIn', diff --git a/pump/combov2/build.gradle b/pump/combov2/build.gradle index 8069b16e0b..852ed510ac 100644 --- a/pump/combov2/build.gradle +++ b/pump/combov2/build.gradle @@ -1,7 +1,9 @@ -apply plugin: 'com.android.library' -apply plugin: 'kotlin-android' -apply plugin: 'kotlin-kapt' -apply plugin: 'kotlin-allopen' +plugins { + id 'com.android.library' + id 'kotlin-android' + id 'kotlin-kapt' + id 'kotlin-allopen' +} apply from: "${project.rootDir}/core/main/android_dependencies.gradle" apply from: "${project.rootDir}/core/main/android_module_dependencies.gradle"