https://kotlinlang.org logo
Title
x

xenoterracide

12/23/2017, 8:17 AM
what's the equivalent of this in kotlin
configurations { driver }

dependencies { driver 'org.xerial:sqlite-jdbc:3.7.2' }`
e

eskatos

12/23/2017, 12:38 PM
Mechanically translated, string based:
configurations { "driver"() }
dependencies { "driver"("org.xerial:sqlite-jdbc:3.7.2")}
Making it type safe:
val driver = configurations.create("driver")
dependencies { driver("org.xerial:sqlite-jdbc:3.7.2")}
Which can be also expressed as:
val driver by configurations.creating
dependencies { driver("org.xerial:sqlite-jdbc:3.7.2")}