This's for the article Defining Dependencies in Gradle Kotlin DSL.
If you're using [kotlin-dsl] in a multi-project manner, you may want to define all the dependencies in one place. You can put the files into buildSrc
, define dependencies in a compat way like this:
extra.deps {
"kt"("stdlib-jre7")
"auto" {
"common"("com.google.auto:auto-common:0.8")
"service"("com.google.auto.service:auto-service:1.0-rc3")