From 4dc860908e9a845d77020ce4f8612241ebd6e6d9 Mon Sep 17 00:00:00 2001 From: Goooler Date: Sat, 9 Sep 2023 14:10:46 +0800 Subject: [PATCH] Still add framework.jar into Kotlin classpath --- build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 429d9dd08b6..e9f7ec36803 100644 --- a/build.gradle +++ b/build.gradle @@ -52,8 +52,8 @@ allprojects { tasks.withType(JavaCompile).configureEach { classpath = files(frameworkJar, classpath) } - dependencies { - compileOnly files(frameworkJar) + tasks.withType(KotlinCompile).configureEach { + it.libraries.from(files(frameworkJar)) } } }