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 {