build/kotlin-extensions: Do not expose kotlin-stdlib dependency to API consumers

This commit is contained in:
Jason Penilla 2021-07-03 17:00:15 -07:00 committed by Jason
parent 5cc7fdd634
commit 42f63b2749

View file

@ -6,6 +6,16 @@ plugins {
id("org.jetbrains.dokka") version "1.4.20" id("org.jetbrains.dokka") version "1.4.20"
} }
configurations.all {
dependencies.removeIf { it.group == "org.jetbrains.kotlin" }
}
dependencies {
api(project(":cloud-core"))
implementation(kotlin("stdlib-jdk8"))
testImplementation("org.jetbrains.kotlin", "kotlin-test-junit5")
}
tasks { tasks {
withType<DokkaTask>().configureEach { withType<DokkaTask>().configureEach {
dokkaSourceSets.getByName("main") { dokkaSourceSets.getByName("main") {
@ -32,8 +42,3 @@ tasks {
kotlin { kotlin {
explicitApi() explicitApi()
} }
dependencies {
api(project(":cloud-core"))
testImplementation("org.jetbrains.kotlin", "kotlin-test-junit5")
}