Skip to content

Commit 58e0436

Browse files
runningcodeclaude
andauthored
chore(build): Remove IDEA-316081 toolchain workaround (#5465)
The Gradle taskGraph workaround for the IntelliJ IDEA toolchain bug (IDEA-316081) is no longer needed. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 9669c2d commit 58e0436

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

build.gradle.kts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -262,14 +262,6 @@ tasks.register("buildForCodeQL") {
262262
}
263263
}
264264

265-
// Workaround for https://youtrack.jetbrains.com/issue/IDEA-316081/Gradle-8-toolchain-error-Toolchain-from-executable-property-does-not-match-toolchain-from-javaLauncher-property-when-different
266-
gradle.taskGraph.whenReady {
267-
val task = this.allTasks.find { it.name.endsWith(".main()") } as? JavaExec
268-
task?.let {
269-
it.setExecutable(it.javaLauncher.get().executablePath.asFile.absolutePath)
270-
}
271-
}
272-
273265
/*
274266
* Adapted from https://github.com/androidx/androidx/blob/c799cba927a71f01ea6b421a8f83c181682633fb/buildSrc/private/src/main/kotlin/androidx/build/MavenUploadHelper.kt#L524-L549
275267
*

0 commit comments

Comments
 (0)