build.gradle.kts

changeset 151
b3f14cd4f3ab
parent 147
dfec8c5f8db0
child 162
2adc8623dd89
equal deleted inserted replaced
150:822b7e3d064d 151:b3f14cd4f3ab
1 import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
1 2
2 plugins { 3 plugins {
3 kotlin("jvm") version "1.4.10" 4 kotlin("jvm") version "1.4.10"
4 war 5 war
5 } 6 }
9 val log4jVersion = "2.13.1" 10 val log4jVersion = "2.13.1"
10 val slf4jVersion = "1.7.30" 11 val slf4jVersion = "1.7.30"
11 12
12 repositories { 13 repositories {
13 mavenCentral() 14 mavenCentral()
15 }
16
17 tasks.withType<KotlinCompile>().configureEach {
18 kotlinOptions.jvmTarget = "11"
14 } 19 }
15 20
16 tasks.war { 21 tasks.war {
17 archiveFileName.set("lightpit.war") 22 archiveFileName.set("lightpit.war")
18 from("src/main/resources") 23 from("src/main/resources")

mercurial