Skip to content

Commit

Permalink
Use and export kotest-bom for kotest dependencies management
Browse files Browse the repository at this point in the history
  • Loading branch information
Spikhalskiy committed Sep 2, 2023
1 parent 1b84bb6 commit 06812d8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 5 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@ 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" }
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 All @@ -63,4 +62,8 @@ kotlin-stdlib-jdk8 = { module = "org.jetbrains.kotlin:kotlin-stdlib-jdk8", versi
kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect", version.ref = "kotlin" }
groovy = { module = "org.apache.groovy:groovy" }

# 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" }

kotlin-gradle-plugin = { module = 'org.jetbrains.kotlin:kotlin-gradle-plugin', version.ref = 'kotlin' }
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 06812d8

Please sign in to comment.