you can find an example of configuring Kotlin with...
# intellij
y
you can find an example of configuring Kotlin with Gradle here: https://github.com/JetBrains/kotlin-examples/tree/master/gradle/hello-world