From 20074636228854d1773404f7fb8e9a5f8f4aca0f Mon Sep 17 00:00:00 2001 From: Mads Boddum Date: Mon, 19 Oct 2026 14:36:05 +0200 Subject: [PATCH] Disable incremental Java compilation to fix Kotlin/Java mixed builds Editing Java code referenced by Kotlin broke the build until a clean. --- build.gradle.kts | 2 ++ 1 file changed, 2 insertions(+) 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") {