Skip to content

Commit

Permalink
Fix missing dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
eygraber committed Nov 27, 2024
1 parent 1f81238 commit 21e7d97
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 29 deletions.
25 changes: 11 additions & 14 deletions jsonpath-benchmarks/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,19 @@ kotlin {
}

sourceSets {
commonMain {
dependencies {
implementation(projects.jsonpathKotlinx)
implementation(projects.jsonpathTest)
}
commonMain.dependencies {
implementation(projects.jsonpathCore)
implementation(projects.jsonpathKotlinx)
implementation(projects.jsonpathTest)
}

jvmMain {
dependencies {
implementation(projects.jsonpathJsonjava)
implementation(libs.jackson.core)
implementation(libs.jackson.databind)
implementation(libs.jackson.moduleKotlin)
implementation(libs.jayway.jsonPath)
implementation(libs.slf4j)
}
jvmMain.dependencies {
implementation(projects.jsonpathJsonjava)
implementation(libs.jackson.core)
implementation(libs.jackson.databind)
implementation(libs.jackson.moduleKotlin)
implementation(libs.jayway.jsonPath)
implementation(libs.slf4j)
}
}
}
Expand Down
18 changes: 8 additions & 10 deletions jsonpath-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,15 @@ kotlin {
)

sourceSets {
getByName("commonTest") {
dependencies {
implementation(projects.jsonpathKotlinx) {
// not having this results in duplicate classes
exclude(mapOf("group" to "com.eygraber", "module" to "jsonpath-core"))
}
implementation(projects.jsonpathTest)

implementation(libs.test.kotest.assertions)
implementation(kotlin("test"))
commonTest.dependencies {
implementation(projects.jsonpathKotlinx) {
// not having this results in duplicate classes
exclude(mapOf("group" to "com.eygraber", "module" to "jsonpath-core"))
}
implementation(projects.jsonpathTest)

implementation(libs.test.kotest.assertions)
implementation(kotlin("test"))
}
}
}
8 changes: 3 additions & 5 deletions jsonpath-kotlinx/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@ kotlin {
)

sourceSets {
commonMain {
dependencies {
api(projects.jsonpathCore)
api(libs.kotlinx.serialization.json)
}
commonMain.dependencies {
api(projects.jsonpathCore)
api(libs.kotlinx.serialization.json)
}
}
}

0 comments on commit 21e7d97

Please sign in to comment.