While setting up Kotlin using InteliJ is much simpler, then I have observed that many persons search of how to set up Kotlin in Eclipse and gradle. There is nothing complicated in it.
At first take a look at official site:
There is a plugin available for Eclipse to use Kotlin.
Setup Kotlin using Gradle
First of all there is need to add gradle plugin and it’s definition to build.gradle file.
Next, just use this plugin in gradle:
There also need to be compiler options defined:
Dependencies are also very important:
Most probably you will want to mix it with java, so it’s better to set up it properly also:
Posted in: Simple How To