WatchdogJavaInteropExtension

The javaInterop block of WatchdogGradleExtension: the Java-interop diagnostics. They matter only to Java consumers, so a Kotlin-only library turns them off:

apiWatchdog {
javaInterop {
enabled = false
}
}

See Java interop checks for more details.

Properties

Link copied to clipboard

Severity of COMPANION_API_WITHOUT_JVM_STATIC: companion functions Java reaches through the instance.

Link copied to clipboard

Severity of COMPANION_PROPERTY_WITHOUT_STATIC_ACCESS: non-static companion property accessors.

Link copied to clipboard

Severity of DEFAULT_PARAMETERS_WITHOUT_JVM_OVERLOADS: defaults that don't exist for Java callers.

Link copied to clipboard
val enabled: Property<Boolean>

Whether the Java-interop diagnostics run. Default is true. false wins over the severities.

Link copied to clipboard

Severity of KOTLIN_ONLY_API_WITHOUT_JVM_SYNTHETIC: Kotlin-only shapes visible to Java.

Link copied to clipboard

Severity of MANGLED_JVM_NAME_PUBLIC_API: value classes that mangle public JVM signatures.

Link copied to clipboard

Severity of TOP_LEVEL_API_WITHOUT_JVM_NAME: file facades that show the file name to Java.