elect
03/04/2024, 10:23 AMtestImplementation(kotlin("test"))
now I need the parameterizedTest Annotation present in org.junit.jupiter:junit-jupiter-params
, is there a programmatic way to have its version in sync with the other components brought in by the previous line?
At the moment I'm simply looking in the deps and manually appending the version (5.10.0
atm)Javier
03/04/2024, 10:27 AMelect
03/04/2024, 10:28 AMelect
03/04/2024, 10:28 AMJavier
03/04/2024, 10:30 AMelect
03/04/2024, 10:30 AMSam
03/04/2024, 10:38 AMtestImplementation(platform("org.junit:junit-bom:5.10.0"))
elect
03/04/2024, 10:40 AMkotlin("test")
elect
03/04/2024, 10:40 AMKlitos Kyriacou
03/04/2024, 10:47 AMkotlin.test
framework, why are you importing the JUnit framework as a transitive dependency when you actually want to use it directly?
Currently you've got:
testImplementation(kotlin("test"))
and if you check what the kotlin
function call does, you'll see that the above is the same as:
testImplementation("org.jetbrains.kotlin:kotlin-test")
which gets an unspecified (typically latest) version of the kotlin-test
dependency, which transitively pulls in an old version of JUnit. If you want JUnit, get it directly.elect
03/04/2024, 10:48 AM