build.gradle.kts

changeset 151
b3f14cd4f3ab
parent 147
dfec8c5f8db0
child 162
2adc8623dd89
--- a/build.gradle.kts	Fri Oct 23 20:34:57 2020 +0200
+++ b/build.gradle.kts	Sat Oct 24 12:09:08 2020 +0200
@@ -1,3 +1,4 @@
+import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
 
 plugins {
     kotlin("jvm") version "1.4.10"
@@ -13,6 +14,10 @@
     mavenCentral()
 }
 
+tasks.withType<KotlinCompile>().configureEach {
+    kotlinOptions.jvmTarget = "11"
+}
+
 tasks.war {
     archiveFileName.set("lightpit.war")
     from("src/main/resources")

mercurial