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:
parent
d2a47ad941
commit
6011bd1d63
1 changed files with 1 additions and 8 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue