Thu, 29 Dec 2022 15:12:25 +0100
fix Jakarta EE request attribute names
1 import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3 plugins {
4 kotlin("jvm") version "1.7.21"
5 war
6 }
7 group = "de.uapcore"
8 version = "1.0-SNAPSHOT"
10 repositories {
11 mavenCentral()
12 }
14 tasks.withType<KotlinCompile>().configureEach {
15 kotlinOptions.jvmTarget = "11"
16 }
18 tasks.jar {
19 enabled = false
20 }
22 tasks.war {
23 duplicatesStrategy = DuplicatesStrategy.WARN
24 archiveFileName.set("lightpit.war")
25 from("src/main/resources")
26 }
28 kotlin {
29 sourceSets {
30 val main by getting {
31 dependencies {
32 // change the following to compileOnly, if you already have them on your server
33 implementation("jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api:3.0.0")
34 implementation("org.glassfish.web:jakarta.servlet.jsp.jstl:3.0.1")
35 implementation("org.postgresql:postgresql:42.5.1")
36 compileOnly("jakarta.servlet:jakarta.servlet-api:6.0.0")
37 val flexmarkVersion = "0.64.0"
38 implementation("com.vladsch.flexmark:flexmark:${flexmarkVersion}")
39 implementation("com.vladsch.flexmark:flexmark-util-data:${flexmarkVersion}")
40 implementation("com.vladsch.flexmark:flexmark-ext-tables:${flexmarkVersion}")
41 implementation("com.vladsch.flexmark:flexmark-ext-gfm-strikethrough:${flexmarkVersion}")
42 implementation("io.github.java-diff-utils:java-diff-utils:4.12")
43 }
44 }
45 }
46 }