Skip to content

Instantly share code, notes, and snippets.

@garsue
Created October 4, 2015 08:04
Show Gist options
  • Save garsue/f7988291f7cdbea8e560 to your computer and use it in GitHub Desktop.
Save garsue/f7988291f7cdbea8e560 to your computer and use it in GitHub Desktop.
build.gradle for a simple Kotlin project
buildscript {
ext.kotlinVersion = '0.1-SNAPSHOT'
repositories {
mavenCentral()
maven {
url 'http://oss.sonatype.org/content/repositories/snapshots'
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
apply plugin: "kotlin"
apply plugin: 'application'
repositories {
mavenCentral()
maven {
url 'http://oss.sonatype.org/content/repositories/snapshots'
}
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
}
sourceSets.main.kotlin.srcDirs += 'src'
mainClassName = 'hello.HelloPackage'
defaultTasks 'run'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment