mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 16:27:06 +05:30
build: configure Kotlin options for all projects
This commit is contained in:
parent
7c7ad41129
commit
d65e14b2c8
2 changed files with 9 additions and 9 deletions
|
@ -1,3 +1,5 @@
|
|||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
google()
|
||||
|
@ -45,6 +47,13 @@ allprojects {
|
|||
.config(mapOf("parser" to "xml", "tabWidth" to 2))
|
||||
}
|
||||
}
|
||||
tasks.withType<KotlinCompile>().configureEach {
|
||||
kotlinOptions {
|
||||
jvmTarget = JavaVersion.VERSION_11.toString()
|
||||
languageVersion = "1.5"
|
||||
freeCompilerArgs = freeCompilerArgs + listOf("-Xopt-in=kotlin.RequiresOptIn")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<Wrapper> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue