has Java Or Kotlin
@Deprecated(message = "Please use `io.spine.tools.gradle.project.hasJavaOrKotlin()` instead.", replaceWith = @ReplaceWith(imports = {"io.spine.tools.gradle.project.hasJavaOrKotlin" }, expression = "hasJavaOrKotlin()" ) )
Deprecated
Please use `io.spine.tools.gradle.project.hasJavaOrKotlin()` instead.
Replace with
import io.spine.tools.gradle.project.hasJavaOrKotlin
Content copied to clipboard
hasJavaOrKotlin()Content copied to clipboard
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
has Java
has Kotlin