To build a Kotlin project with Gradle, you need to add the Kotlin Gradle plugin to your build script file build.gradle(.kts) and configure the project's dependencies there. Apply the pluginTo apply the Kotlin Gradle plugin, use the plugins{} block from the Gradle plugins DSL: plugins { // Replace `<...>` with the plugin name appropriate for your target environment kotlin("<...>") version "2.0.10"
![Configure a Gradle project | Kotlin](https://cdn-ak-scissors.b.st-hatena.com/image/square/727780a685d34ecc2401189bf4dc704ded84998b/height=288;version=1;width=512/https%3A%2F%2Fkotlinlang.org%2Fassets%2Fimages%2Fopen-graph%2Fdocs.png)