Skip to content

Instantly share code, notes, and snippets.

@satokitty
Last active December 20, 2015 06:48
Show Gist options
  • Save satokitty/6088048 to your computer and use it in GitHub Desktop.
Save satokitty/6088048 to your computer and use it in GitHub Desktop.
Hello, Kotlin!
buildscript {
repositories {
mavenCentral()
maven {
url 'http://oss.sonatype.org/content/repositories/snapshots'
}
mavenLocal()
}
dependencies {
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:0.1-SNAPSHOT'
}
}
apply plugin: 'kotlin'
apply plugin: 'application'
mainClassName="hello.HelloPackage"
repositories {
mavenCentral()
maven {
url 'http://oss.sonatype.org/content/repositories/snapshots'
}
mavenLocal()
}
dependencies {
compile 'org.jetbrains.kotlin:kotlin-stdlib:0.1-SNAPSHOT'
}
task makeDirs << {
def sources = [sourceSets.main, sourceSets.test]
sources*.allSource*.srcDirs.flatten().each {
it.mkdirs()
}
}
package hello
fun main(args: Array<String>) {
println("Hello, Kotlin!")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment