|
|
@ -42,8 +42,8 @@ internal fun Project.configureKotlinAndroid(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
|
|
isCoreLibraryDesugaringEnabled = true
|
|
|
|
isCoreLibraryDesugaringEnabled = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -52,7 +52,7 @@ internal fun Project.configureKotlinAndroid(
|
|
|
|
tasks.withType<KotlinCompile>().configureEach {
|
|
|
|
tasks.withType<KotlinCompile>().configureEach {
|
|
|
|
kotlinOptions {
|
|
|
|
kotlinOptions {
|
|
|
|
// Set JVM target to 11
|
|
|
|
// Set JVM target to 11
|
|
|
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
|
|
|
jvmTarget = JavaVersion.VERSION_17.toString()
|
|
|
|
// Treat all Kotlin warnings as errors (disabled by default)
|
|
|
|
// Treat all Kotlin warnings as errors (disabled by default)
|
|
|
|
// Override by setting warningsAsErrors=true in your ~/.gradle/gradle.properties
|
|
|
|
// Override by setting warningsAsErrors=true in your ~/.gradle/gradle.properties
|
|
|
|
val warningsAsErrors: String? by project
|
|
|
|
val warningsAsErrors: String? by project
|
|
|
|