diff --git a/build.gradle.kts b/build.gradle.kts index 373add314..f1ebecf45 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -153,6 +153,8 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class).configure tasks.withType().configureEach { options.release.set(javaVersion.majorVersion.toInt()) + // Incremental javac loses Kotlin-generated classes from the classpath and breaks the build + options.isIncremental = false } tasks.register("runDevelopment") {