mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 17:37:05 +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,5 +1,3 @@
|
||||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
kotlin("jvm")
|
kotlin("jvm")
|
||||||
id("com.google.devtools.ksp") version "1.5.21-1.0.0-beta06"
|
id("com.google.devtools.ksp") version "1.5.21-1.0.0-beta06"
|
||||||
|
@ -14,10 +12,3 @@ dependencies {
|
||||||
testImplementation(kotlin("test-junit"))
|
testImplementation(kotlin("test-junit"))
|
||||||
testImplementation(libs.testing.mockWebServer)
|
testImplementation(libs.testing.mockWebServer)
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<KotlinCompile> {
|
|
||||||
kotlinOptions {
|
|
||||||
jvmTarget = JavaVersion.VERSION_11.toString()
|
|
||||||
languageVersion = "1.5"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
google()
|
google()
|
||||||
|
@ -45,6 +47,13 @@ allprojects {
|
||||||
.config(mapOf("parser" to "xml", "tabWidth" to 2))
|
.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> {
|
tasks.withType<Wrapper> {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue