From 9e9955a04567276e9e04140f0aa8e6011bcb750e Mon Sep 17 00:00:00 2001 From: Goooler Date: Thu, 23 Oct 2025 17:45:09 +0800 Subject: [PATCH] Fix classpath for KotlinCompile --- build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 100f1a804c..504238f0ad 100644 --- a/build.gradle +++ b/build.gradle @@ -96,10 +96,12 @@ allprojects { } gradle.projectsEvaluated { tasks.withType(JavaCompile).configureEach { + // Make sure the frameworkJar is always first in the classpath. classpath = files(frameworkJar, classpath) } tasks.withType(KotlinCompile).configureEach { - libraries.from(files(frameworkJar)) + // Make sure the frameworkJar is always first in the classpath. + libraries.setFrom files(frameworkJar, libraries) } } dependencies {