How to Create a Project with Kotlin support?

How do i create a project with Kotlin support in Cuba 7. I can see only groovy support in the Cuba Project Properties. But i saw Cuba 7 support for Kotlin. My question is how do i create Screen controllers in Kotlin by default without converting java files into kotlin manually?

And how do i configure kotlin plugin in gradle?

Hi,

We do not support Kotlin in Studio yet. It is planned for the end of the year.

Hi,

I use Kotlin in my projects. I found two problems:

  1. If you have enabled groovy support, you have problems with relations between groovy and kotlin (compilation order) classes.
  2. If you convert a service to Kotlin, the Cuba plugin will not show it in the project tree

build.gradle (5,6 KB)

p.s.

Sorry for my english

2 Likes