How to add kotlin sources in build.gradle java project? (NOT android)

I have a very simple build.gradle in groovy, for a Java project. I have kotlin sources somewhere else. How can I add those sources to my java project?

It’s for java desktop, NOT android

Jetbrains provides a Gradle plugin for compiling Kotlin code for the JVM.