Put kotlin stdlib in api configuration

Kotlin gradle plugin really should apply the bom by default instead of the stdlib...
This commit is contained in:
Jason Penilla 2021-11-15 15:11:06 -08:00 committed by Jason
parent d2a47ad941
commit 6011bd1d63

View file

@ -16,15 +16,8 @@ kotlin {
} }
} }
val compileAndTest: Configuration by configurations.creating
listOf(configurations.compileOnly, configurations.testImplementation).forEach { config ->
config {
extendsFrom(compileAndTest)
}
}
dependencies { dependencies {
compileAndTest(kotlin("stdlib-jdk8")) api(kotlin("stdlib-jdk8"))
} }
tasks { tasks {