fix kotlinx-coroutines/kotlinx-serialization dependencies version clash in gradle-plugins
This commit is contained in:
parent
f4b614a56a
commit
467227d965
4 changed files with 27 additions and 4 deletions
|
|
@ -3,10 +3,11 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("kafkatorio.conventions.kotlin-dsl")
|
id("kafkatorio.conventions.kotlin-dsl")
|
||||||
|
id("kafkatorio.conventions.kotlin-serialization")
|
||||||
// idea
|
// idea
|
||||||
// `kotlin-dsl`
|
// `kotlin-dsl`
|
||||||
// kotlin("jvm") //version "1.7.20" // embeddedKotlinVersion
|
// kotlin("jvm") //version "1.7.20" // embeddedKotlinVersion
|
||||||
kotlin("plugin.serialization") version embeddedKotlinVersion
|
// kotlin("plugin.serialization") // version embeddedKotlinVersion
|
||||||
// kotlin("plugin.serialization") version "1.7.20"
|
// kotlin("plugin.serialization") version "1.7.20"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("kafkatorio.conventions.kotlin-dsl")
|
id("kafkatorio.conventions.kotlin-dsl")
|
||||||
kotlin("plugin.serialization") version embeddedKotlinVersion
|
id("kafkatorio.conventions.kotlin-serialization")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -61,7 +61,7 @@ gradlePlugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
overrideKotlinLanguageVersion("1.6")
|
overrideKotlinLanguageVersion("1.7")
|
||||||
|
|
||||||
//val gradleKotlinTarget = "1.7"
|
//val gradleKotlinTarget = "1.7"
|
||||||
//
|
//
|
||||||
|
|
@ -73,3 +73,13 @@ overrideKotlinLanguageVersion("1.6")
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
|
||||||
|
tasks.withType<KotlinCompile>().configureEach {
|
||||||
|
kotlinOptions.freeCompilerArgs += listOf(
|
||||||
|
"-opt-in=kotlin.RequiresOptIn",
|
||||||
|
"-opt-in=kotlin.ExperimentalStdlibApi",
|
||||||
|
"-opt-in=kotlin.time.ExperimentalTime",
|
||||||
|
"-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,8 +14,12 @@ dependencies {
|
||||||
// get polluted and messy.
|
// get polluted and messy.
|
||||||
|
|
||||||
implementation("org.gradle.kotlin:gradle-kotlin-dsl-plugins:$expectedKotlinDslPluginsVersion")
|
implementation("org.gradle.kotlin:gradle-kotlin-dsl-plugins:$expectedKotlinDslPluginsVersion")
|
||||||
// implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${embeddedKotlinVersion}")
|
|
||||||
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${libs.versions.kotlin.get()}")
|
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:${libs.versions.kotlin.get()}")
|
||||||
|
|
||||||
|
implementation(platform(libs.kotlin.bom))
|
||||||
|
implementation("org.jetbrains.kotlin:kotlin-serialization")
|
||||||
|
|
||||||
|
implementation(platform(libs.kotlinx.coroutines.bom))
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
package kafkatorio.conventions
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
kotlin("plugin.serialization")
|
||||||
|
}
|
||||||
|
|
||||||
|
// No config required or available. This convention plugin is only required because Gradle gets
|
||||||
|
// confused about the version.
|
||||||
Loading…
Add table
Add a link
Reference in a new issue