Commit which causes the crash
diff --git a/build.gradle.kts b/build.gradle.kts
index 6581ee6..66c8756 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -439,6 +439,16 @@
         "-Xnormalize-constructor-calls=enable"
     )
 
+    val outputDir = buildDir.resolve("classes/java/main")
+    tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile::class).all {
+        destinationDir = outputDir
+    }
+//    sourceSets {
+//        "main" {
+//            java.outputDir = outputDir
+//        }
+//    }
+
     tasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompile> {
         kotlinOptions {
             freeCompilerArgs = commonCompilerArgs + jvmCompilerArgs