gradle-plugin / com.squareup.anvil.plugin / CheckMixedSourceSet

CheckMixedSourceSet

object CheckMixedSourceSet

In a mixed Kotlin / Java source set the Kotlin compiler might crash with an error like this:

java.lang.AssertionError: Duplicated JavaClassDescriptor a/b/c/Hello reported to IC.

That's a known bug: https://youtrack.jetbrains.com/issue/KT-38576

The workaround for now is to set the kotlin.incremental.usePreciseJavaTracking flag to false for these module using this task.

Types

Input

class Input

Functions

disablePreciseJavaTrackingIfNeeded

fun disablePreciseJavaTrackingIfNeeded(compileTask: KotlinCompile, input: CheckMixedSourceSet.Input): Unit

preparePreciseJavaTrackingCheck

fun preparePreciseJavaTrackingCheck(compileTask: KotlinCompile): CheckMixedSourceSet.Input