From 1d6de6745a77a53728ada205cba19ec27c0c4a95 Mon Sep 17 00:00:00 2001 From: Cosmin Stroe Date: Fri, 7 Dec 2018 04:26:27 -0600 Subject: [PATCH] Add Kotlin to project. --- build.gradle.kts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 5d1d017..55eee2f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,7 +1,10 @@ +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile + plugins { id("java") id("com.gradle.build-scan") version "2.0.2" id("org.springframework.boot") version "2.1.1.RELEASE" + kotlin("jvm") version "1.3.11" } repositories { @@ -46,4 +49,17 @@ dependencies { // integrationTestCompile("org.seleniumhq.selenium:selenium-java:3.13.0") // integrationTestCompile("org.seleniumhq.selenium:selenium-remote-driver:3.13.0") + compile(kotlin("stdlib-jdk8")) +} + +val compileKotlin: KotlinCompile by tasks + +compileKotlin.kotlinOptions { + jvmTarget = "1.8" } + +val compileTestKotlin: KotlinCompile by tasks + +compileTestKotlin.kotlinOptions { + jvmTarget = "1.8" +} \ No newline at end of file