diff --git a/gradle-client/build.gradle.kts b/gradle-client/build.gradle.kts index ce1e56e..bf42f36 100644 --- a/gradle-client/build.gradle.kts +++ b/gradle-client/build.gradle.kts @@ -21,7 +21,17 @@ val appQualifiedName = "org.gradle.client" val appUUID = file("app-uuid.txt").readText().trim() kotlin { - jvm() + jvm { + compilations.named("main") { + tasks.withType().all { + if (name == "jvmRun") { + setClasspath(runtimeDependencyFiles.filter { + !it.name.startsWith("gradle-api-") + }) + } + } + } + } sourceSets { all {