Fix classpath for KotlinCompile

This commit is contained in:
Goooler
2025-10-23 17:45:09 +08:00
parent de6e98c74b
commit 9e9955a045

View File

@@ -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 {