mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 18:47:03 +05:30
refactor(build): migrate to Kotlin compilerOptions
DSL
This commit is contained in:
parent
bf104a1d85
commit
6b164f84d9
2 changed files with 13 additions and 9 deletions
|
@ -7,6 +7,7 @@
|
|||
import org.gradle.api.JavaVersion
|
||||
import org.gradle.api.tasks.compile.JavaCompile
|
||||
import org.gradle.kotlin.dsl.withType
|
||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
plugins { `kotlin-dsl` }
|
||||
|
@ -17,7 +18,7 @@ tasks.withType<JavaCompile>().configureEach {
|
|||
}
|
||||
|
||||
tasks.withType<KotlinCompile>().configureEach {
|
||||
kotlinOptions { jvmTarget = JavaVersion.VERSION_11.toString() }
|
||||
compilerOptions { jvmTarget.set(JvmTarget.JVM_11) }
|
||||
}
|
||||
|
||||
gradlePlugin {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue