Set up Kotlin source directory from Gradle Kotlin DSL
Tip
Enable Java 8 compatibility for Kotlin sources
Tip
Manage Gradle dependencies using Kotlin code in buildSrc
Tip
Manage your Gradle dependencies in Kotlin, even from Groovy scripts
As projects grow we can quickly run into issues with dependency management. We will explore the ways Gradle allows us to define our dependencies, ending with looking at using Kotlin source files and easily accessing them from our Gradle scripts.
Article