apatrida
10/19/2015, 12:47 PMbuildScript
block for defining the plugin classpath, the apply
of the plugin, and then need the runtime library in your dependencies
for the project. This page: https://kotlinlang.org/docs/reference/using-gradle.html shows all of this:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:<version>'
}
}
apply plugin: "kotlin" // or apply plugin: "kotlin2js" if targeting JavaScript
repositories {
mavenCentral()
}
dependencies {
compile 'org.jetbrains.kotlin:kotlin-stdlib:<version>'
}
is that what you tried?