Skip to content

Commit

Permalink
Use compileOnly to not force dependencies versions
Browse files Browse the repository at this point in the history
  • Loading branch information
pgreze committed Jun 27, 2024
1 parent 4702790 commit 76e2caa
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,13 @@ tasks.jacocoTestReport {
}

dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation(KotlinX.coroutines.core)
setOf(
kotlin("stdlib-jdk8"),
KotlinX.coroutines.core,
).forEach { dependency ->
compileOnly(dependency)
testImplementation(dependency)
}

testImplementation("org.amshove.kluent:kluent:_")
testImplementation(platform(Testing.junit.bom))
Expand Down

0 comments on commit 76e2caa

Please sign in to comment.