Skip to content

Commit

Permalink
(FIXME: REVERT THIS!) Remove gradle-api from the runtime classpath
Browse files Browse the repository at this point in the history
This is a workaround against class ambiguity: the dependency on the
plugins from an included build brings the Gradle API JAR on the
classpath. That has SLF4J bundled, which clashes with the one used
in this project.

Revert this commit once we switch to a dependency on published plugins.
  • Loading branch information
h0tk3y committed Jun 12, 2024
1 parent 0ee9fd7 commit f06b189
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion gradle-client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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<JavaExec>().all {
if (name == "jvmRun") {
setClasspath(runtimeDependencyFiles.filter {
!it.name.startsWith("gradle-api-")
})
}
}
}
}
sourceSets {

all {
Expand Down

0 comments on commit f06b189

Please sign in to comment.