hasJavaOrKotlin

@Deprecated(message = "Please use `io.spine.tools.gradle.project.hasJavaOrKotlin()` instead.", replaceWith = @ReplaceWith(imports = {"io.spine.tools.gradle.project.hasJavaOrKotlin"}, expression = "hasJavaOrKotlin()"))
public final static Boolean hasJavaOrKotlin(Project $self)

Deprecated

Please use `io.spine.tools.gradle.project.hasJavaOrKotlin()` instead.

Replace with

import io.spine.tools.gradle.project.hasJavaOrKotlin
hasJavaOrKotlin()

Verifies if the project can deal with Java or Kotlin code.

The current Protobuf support of Kotlin is based on Java codegen. Therefore, it is likely that Java would be enabled in the project for Kotlin proto code to be generated. Though, it may change someday, and Kotlin support for Protobuf would be self-sufficient. This method assumes such a case when it checks the presence of Kotlin compilation tasks.

See also

hasJava
hasKotlin