Created
October 4, 2015 08:04
-
-
Save garsue/f7988291f7cdbea8e560 to your computer and use it in GitHub Desktop.
build.gradle for a simple Kotlin project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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