Thu, 29 Dec 2022 14:03:00 +0100
remove java task from build file
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.war {
19 archiveFileName.set("lightpit.war")
20 from("src/main/resources")
21 }
23 kotlin {
24 sourceSets {
25 val main by getting {
26 dependencies {
27 // change the following to compileOnly, if you already have them on your server
28 implementation("jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api:3.0.0")
29 implementation("org.glassfish.web:jakarta.servlet.jsp.jstl:3.0.1")
30 implementation("org.postgresql:postgresql:42.5.1")
31 compileOnly("jakarta.servlet:jakarta.servlet-api:6.0.0")
32 val flexmarkVersion = "0.64.0"
33 implementation("com.vladsch.flexmark:flexmark:${flexmarkVersion}")
34 implementation("com.vladsch.flexmark:flexmark-util-data:${flexmarkVersion}")
35 implementation("com.vladsch.flexmark:flexmark-ext-tables:${flexmarkVersion}")
36 implementation("com.vladsch.flexmark:flexmark-ext-gfm-strikethrough:${flexmarkVersion}")
37 implementation("io.github.java-diff-utils:java-diff-utils:4.12")
38 }
39 }
40 }
41 }