feat(build): raise Kotlin target to match version

This commit is contained in:
Harsh Shandilya 2023-05-06 01:58:43 +05:30
parent 086cbe9121
commit ff0b489dd9
No known key found for this signature in database

View file

@ -30,7 +30,7 @@ class KotlinCommonPlugin : Plugin<Project> {
compilerOptions { compilerOptions {
jvmTarget.set(JvmTarget.JVM_11) jvmTarget.set(JvmTarget.JVM_11)
allWarningsAsErrors.set(true) allWarningsAsErrors.set(true)
languageVersion.set(KotlinVersion.KOTLIN_1_5) languageVersion.set(KotlinVersion.KOTLIN_1_8)
freeCompilerArgs.addAll(ADDITIONAL_COMPILER_ARGS) freeCompilerArgs.addAll(ADDITIONAL_COMPILER_ARGS)
if (!this@task.name.contains("test", ignoreCase = true) && !isAppModule) { if (!this@task.name.contains("test", ignoreCase = true) && !isAppModule) {
freeCompilerArgs.add("-Xexplicit-api=strict") freeCompilerArgs.add("-Xexplicit-api=strict")