Slackbot
02/02/2024, 12:19 PMVampire
02/03/2024, 4:01 AMuseJUnitJupiter(), you do not need to add Jupiter explicitly. And you do not need it for functionalTest. It does not "inherit" anything, it simply is the default of newly created test suites. For the test suite the default is just different for backwards compatibility.André Martins
02/05/2024, 4:00 PMVampire
02/05/2024, 4:01 PMVampire
02/05/2024, 4:02 PMVampire
02/05/2024, 4:03 PMAndré Martins
02/05/2024, 4:07 PMVampire
02/05/2024, 4:08 PMVampire
02/05/2024, 4:09 PMVampire
02/05/2024, 4:09 PMAndré Martins
02/05/2024, 4:11 PMVampire
02/05/2024, 4:12 PMAndré Martins
02/05/2024, 4:12 PMAndré Martins
02/05/2024, 4:12 PMVampire
02/05/2024, 4:13 PMAndré Martins
02/05/2024, 4:14 PMAndré Martins
02/05/2024, 4:14 PMAndré Martins
02/05/2024, 4:17 PMVampire
02/05/2024, 4:17 PMAndré Martins
02/05/2024, 4:22 PMVampire
02/05/2024, 4:28 PMVampire
02/05/2024, 4:29 PMAndré Martins
02/05/2024, 4:30 PMAndré Martins
02/05/2024, 4:30 PMVampire
02/05/2024, 4:31 PMVampire
02/05/2024, 4:31 PMAndré Martins
02/05/2024, 4:31 PMAndré Martins
02/05/2024, 4:32 PMtesting {
suites {
val test by getting(JvmTestSuite::class) {
useJUnitJupiter()
targets {
all {
testTask.configure {
outputs.upToDateWhen { false }
reports.junitXml.outputLocation
.set(file("$buildDir/junit-reports"))
testLogging {
exceptionFormat = FULL
events = setOf(FAILED)
showStandardStreams = true
}
}
}
}
}
val otherTest by registering(JvmTestSuite::class) {
useJUnitJupiter("5.10.1")
dependencies {
runtimeOnly("org.junit.vintage:junit-vintage-engine:5.10.1")
...
implementation(Dependencies.ElasticsearchClient.dependency) {
exclude("commons-logging", "commons-logging") // does not work
}
}
}
}
}André Martins
02/05/2024, 4:33 PM(this as ModuleDependency).exclude("commons-logging", "commons-logging")Vampire
02/05/2024, 5:16 PMAndré Martins
02/05/2024, 5:17 PMVampire
02/05/2024, 5:19 PMVampire
02/05/2024, 5:19 PMAndré Martins
02/07/2024, 5:39 PMAndré Martins
02/07/2024, 5:40 PMimplementation(project(path)) as the way to go but it is not working for me 😓André Martins
02/07/2024, 5:41 PMimplementation(project()) does not work either from the docs https://docs.gradle.org/current/userguide/jvm_test_suite_plugin.htmlVampire
02/07/2024, 6:09 PMVampire
02/07/2024, 6:16 PMimplementation(project) iircAdam
02/07/2024, 7:10 PMimplementation(project()) should work https://github.com/Kotlin/dokka/blob/19164dc60620289d95c3553531ba2f78ad27702f/dokka-integration-tests/gradle/build.gradle.kts#L94-L100Vampire
02/07/2024, 7:29 PMAndré Martins
02/08/2024, 9:45 AMAndré Martins
02/08/2024, 9:46 AMimplementation(project) gives me an errorVampire
02/08/2024, 9:46 AMimplementation(project()) should work properly and does for meAndré Martins
02/08/2024, 9:47 AMAndré Martins
02/08/2024, 9:47 AMVampire
02/08/2024, 9:48 AMimplementation dependencies do not leak into downstream compile classpaths.André Martins
02/08/2024, 9:49 AMAndré Martins
02/08/2024, 9:49 AMAndré Martins
02/08/2024, 9:49 AMAndré Martins
02/08/2024, 9:49 AMAndré Martins
02/08/2024, 9:49 AMVampire
02/08/2024, 9:49 AMAndré Martins
02/08/2024, 9:49 AMVampire
02/08/2024, 9:51 AMjava plugin does exactly that. It makes testImplementation extend from implementation and testRuntimeOnly extend from runtimeOnly.Vampire
02/08/2024, 9:52 AMAndré Martins
02/08/2024, 9:54 AMVampire
02/08/2024, 9:55 AMimplementation and testImplementation extend from this new configuration, then you share exactly those.André Martins
02/08/2024, 9:56 AM