christophsturm
06/06/2022, 10:47 PMclasspath = sourceSets["test"].runtimeClasspath
ephemient
06/06/2022, 10:56 PMconfigurations["jvmTestRuntimeClasspath"]
should be what you want unless you've named the JVM target something else or created a separate test compilationephemient
06/06/2022, 11:01 PMJavaExec
from that - what are you trying to do?ephemient
06/07/2022, 12:57 AMkotlin {
targets {
jvm {
compilations.getByName("test") {
tasks.register<JavaExec>("myJavaExecTask") {
classpath(runtimeDependencyFiles, output)
but if what you're trying to do is create another test task, you should use Test
instead of JavaExec
christophsturm
06/07/2022, 7:22 AMephemient
06/07/2022, 7:53 AMchristophsturm
06/07/2022, 7:54 AMephemient
06/07/2022, 7:58 AMchristophsturm
06/07/2022, 8:28 AMchristophsturm
06/07/2022, 8:29 AM