build.gradle.kts

changeset 147
dfec8c5f8db0
child 151
b3f14cd4f3ab
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/build.gradle.kts	Fri Oct 23 18:01:40 2020 +0200
@@ -0,0 +1,33 @@
+
+plugins {
+    kotlin("jvm") version "1.4.10"
+    war
+}
+group = "de.uapcore"
+version = "0.5-SNAPSHOT"
+
+val log4jVersion = "2.13.1"
+val slf4jVersion = "1.7.30"
+
+repositories {
+    mavenCentral()
+}
+
+tasks.war {
+    archiveFileName.set("lightpit.war")
+    from("src/main/resources")
+}
+
+kotlin {
+    sourceSets {
+        val main by getting {
+            dependencies {
+                compileOnly("javax.servlet:javax.servlet-api:3.1.0")
+                compileOnly("javax.servlet:jstl:1.2")
+                implementation("org.slf4j:slf4j-api:${slf4jVersion}")
+                implementation("org.apache.logging.log4j:log4j-core:${log4jVersion}")
+                implementation("org.apache.logging.log4j:log4j-slf4j-impl:${log4jVersion}")
+            }
+        }
+    }
+}

mercurial