Build and verify runnable samples with gradle.

This commit is contained in:
Ilya Gorbunov
2017-04-01 05:31:19 +03:00
parent 97d1ffb036
commit 88e6f2160a
2 changed files with 22 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
apply plugin: 'kotlin'
dependencies {
compile project(':kotlin-stdlib-jre8')
testCompile project(':kotlin-test:kotlin-test-junit')
}
sourceSets {
test.kotlin.srcDir 'test'
}
compileTestKotlin {
kotlinOptions.jdkHome = JDK_18
}
kotlin.experimental.coroutines 'enable'
test {
executable = "$JDK_18/bin/java"
}