a2b2c47b51
- Use new syntax in tests, but not in actual gradle files - Reuse public `toKotlinRepositorySnippet` instead of private one - ^KT-34795 Fixed
31 lines
630 B
Kotlin
Vendored
31 lines
630 B
Kotlin
Vendored
import org.gradle.api.JavaVersion.VERSION_1_7
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
application
|
|
kotlin("jvm") version "$VERSION$"
|
|
}
|
|
|
|
application {
|
|
mainClassName = "samples.HelloWorld"
|
|
}
|
|
|
|
repositories {
|
|
jcenter()
|
|
maven("https://dl.bintray.com/kotlin/kotlin-eap")
|
|
}
|
|
|
|
dependencies {
|
|
testCompile("junit:junit:4.12")
|
|
implementation(kotlin("stdlib-jre8"))
|
|
}
|
|
|
|
// VERSION: $VERSION$
|
|
val compileKotlin: KotlinCompile by tasks
|
|
compileKotlin.kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
val compileTestKotlin: KotlinCompile by tasks
|
|
compileTestKotlin.kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
} |