Skip to content

Instantly share code, notes, and snippets.

@markusthoemmes
Last active June 3, 2017 12:53
Show Gist options
  • Select an option

  • Save markusthoemmes/c96204b1e08a6653dcb6bab6f2c0e32f to your computer and use it in GitHub Desktop.

Select an option

Save markusthoemmes/c96204b1e08a6653dcb6bab6f2c0e32f to your computer and use it in GitHub Desktop.
A gradle script to build Kotlin based projects.
buildscript {
ext.kotlin_version = '1.1.2-2'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment