Skip to content

Commit

Permalink
Remove explicit kotlin-stdlib and kotlin-test-junit dependencies
Browse files Browse the repository at this point in the history
They are configured automatically by KGP
  • Loading branch information
ilya-g committed Dec 1, 2023
1 parent 841b0a8 commit 5def197
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
7 changes: 0 additions & 7 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ kotlin {
sourceSets {
commonMain {
dependencies {
api("org.jetbrains.kotlin:kotlin-stdlib-common")
compileOnly("org.jetbrains.kotlinx:kotlinx-serialization-core:$serializationVersion")
}
}
Expand All @@ -191,15 +190,9 @@ kotlin {
}

val jvmMain by getting {
dependencies {
api("org.jetbrains.kotlin:kotlin-stdlib")
}
}

val jvmTest by getting {
dependencies {
api("org.jetbrains.kotlin:kotlin-test-junit")
}
}

val commonJsMain by creating {
Expand Down
7 changes: 1 addition & 6 deletions serialization/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ kotlin {
commonMain {
dependencies {
api(project(":kotlinx-datetime"))
api("org.jetbrains.kotlin:kotlin-stdlib-common")
}
}

Expand All @@ -90,11 +89,7 @@ kotlin {
}

val jvmMain by getting
val jvmTest by getting {
dependencies {
api("org.jetbrains.kotlin:kotlin-test-junit")
}
}
val jvmTest by getting

val jsMain by getting
val jsTest by getting {
Expand Down

0 comments on commit 5def197

Please sign in to comment.