648e8acbde
(replace http with https configuring gradle project)
32 lines
649 B
Plaintext
Vendored
32 lines
649 B
Plaintext
Vendored
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
java
|
|
kotlin("jvm") version "1.2.40-eap-62"
|
|
}
|
|
|
|
group = "testgroup"
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven { setUrl("https://dl.bintray.com/kotlin/kotlin-eap") }
|
|
}
|
|
|
|
dependencies {
|
|
testCompile("junit", "junit", "4.12")
|
|
compile(kotlin("stdlib-jdk8"))
|
|
}
|
|
|
|
configure<JavaPluginConvention> {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
val compileKotlin: KotlinCompile by tasks
|
|
compileKotlin.kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
val compileTestKotlin: KotlinCompile by tasks
|
|
compileTestKotlin.kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|