Slackbot
09/08/2023, 4:40 PMephemient
09/10/2023, 4:04 AMtasks.register("runTest", JavaExec::class) {
// javaLauncher.set(javaToolchains.launcherFor { ... })
classpath(sourceSets.test.map { files(it.output.dirs, it.runtimeClasspath) })
mainClass.set("...")
}
should workJonathan Kupcho
09/10/2023, 12:33 PMephemient
09/10/2023, 12:34 PMJonathan Kupcho
09/10/2023, 12:36 PM@SpringBootApplication
annotation to the class it works fine, the classpath is setup correctly, etc. But that ends breaking a few other unit tests because spring detects multiple applications on the classpath, which makes sense but it’s weird that it works.Jonathan Kupcho
09/19/2023, 3:15 PM