Eli Graber
02/21/2025, 8:27 PMCaused by: org.junit.platform.commons.JUnitException: OutputDirectoryProvider not available; probably due to unaligned versions of the junit-platform-engine and junit-platform-launcher jars on the classpath/module path.Caleb Cushing
02/21/2025, 9:55 PMEli Graber
02/21/2025, 9:55 PMtasks.withType<Test> {
useJUnitPlatform()
outputs.upToDateWhen { false }
}Caleb Cushing
02/21/2025, 9:56 PMCaleb Cushing
02/21/2025, 9:58 PM[libraries]
junit-api = { module = "org.junit.jupiter:junit-jupiter-api" }
junit-bom = "org.junit:junit-bom:5.+"
junit-parameters = { module = "org.junit.jupiter:junit-jupiter-params" }
junit-engine = { module = "org.junit.jupiter:junit-jupiter-engine" }
junit-launcher = { module = "org.junit.platform:junit-platform-launcher" }
[bundles]
test-impl = ["junit-api", "assertj", "junit-parameters"]
test-runtime = ["junit-engine", "junit-launcher"]Vampire
02/21/2025, 9:59 PMCaleb Cushing
02/21/2025, 10:00 PMimplementation(platform(libs.junit.bom))
implementation.bundle(libs.bundles.test.impl)
runtimeOnly.bundle(libs.bundles.test.runtime)Caleb Cushing
02/21/2025, 10:01 PMVampire
02/21/2025, 10:02 PMEli Graber
02/21/2025, 10:15 PM