Wed, 28 Dec 2022 13:21:30 +0100
#233 migrate to Jakarta EE and update dependencies
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 // remove after removing all java sources
19 tasks.withType<JavaCompile>().configureEach {
20 sourceCompatibility = "11"
21 targetCompatibility = "11"
22 }
24 tasks.war {
25 archiveFileName.set("lightpit.war")
26 from("src/main/resources")
27 }
29 kotlin {
30 sourceSets {
31 val main by getting {
32 dependencies {
33 // change the following to compileOnly, if you already have them on your server
34 implementation("jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api:3.0.0")
35 implementation("org.glassfish.web:jakarta.servlet.jsp.jstl:3.0.1")
36 implementation("org.postgresql:postgresql:42.5.1")
37 compileOnly("jakarta.servlet:jakarta.servlet-api:6.0.0")
38 val flexmarkVersion = "0.64.0"
39 implementation("com.vladsch.flexmark:flexmark:${flexmarkVersion}")
40 implementation("com.vladsch.flexmark:flexmark-util-data:${flexmarkVersion}")
41 implementation("com.vladsch.flexmark:flexmark-ext-tables:${flexmarkVersion}")
42 implementation("com.vladsch.flexmark:flexmark-ext-gfm-strikethrough:${flexmarkVersion}")
43 implementation("io.github.java-diff-utils:java-diff-utils:4.12")
44 }
45 }
46 }
47 }