Skip to content

Commit

Permalink
Use and export kotest-bom for kotest dependencies management (#844)
Browse files Browse the repository at this point in the history
  • Loading branch information
Spikhalskiy authored Sep 11, 2023
1 parent e62adba commit fdd5dff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ managed-hamcrest = { module = "org.hamcrest:hamcrest", version.ref = "managed-ha
managed-mockito-core = { module = "org.mockito:mockito-core", version.ref = "managed-mockito" }
managed-mockito-junit-jupiter = { module = "org.mockito:mockito-junit-jupiter", version.ref = "managed-mockito" }
managed-mockk = { module = "io.mockk:mockk", version.ref = "managed-mockk" }
# TODO kotest libs should stop be directly managed, boms-kotest should define the versions
managed-kotest-assertions-core-jvm = { module = "io.kotest:kotest-assertions-core-jvm", version.ref = "managed-kotest" }
managed-kotest-runner-junit5-jvm = { module = "io.kotest:kotest-runner-junit5-jvm", version.ref = "managed-kotest" }

# BOMs
boms-junit = { module = "org.junit:junit-bom", version.ref = "managed-junit" }
boms-kotest = { module = "io.kotest:kotest-bom", version.ref = "managed-kotest" }
boms-spock = { module = "org.spockframework:spock-bom", version.ref = "managed-spock" }
boms-rest-assured = { module = "io.rest-assured:rest-assured-bom", version.ref = "managed-rest-assured" }

Expand Down
4 changes: 4 additions & 0 deletions test-bom/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ plugins {
id "io.micronaut.build.internal.bom"
}

repositories {
gradlePluginPortal() // needed for checkBom task to resolve plugin dependencies defined in kotest-pom
}

micronautBom {
suppressions {
acceptedLibraryRegressions.add("micronaut-test-kotest")
Expand Down
1 change: 1 addition & 0 deletions test-kotest5/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
dependencies {
api projects.micronautTestCore
api(mn.micronaut.context)
api(platform(libs.boms.kotest))
api(libs.managed.kotest.runner.junit5.jvm)

implementation(mn.micronaut.inject)
Expand Down

0 comments on commit fdd5dff

Please sign in to comment.