Fri, 30 Dec 2022 19:04:34 +0100
#29 add possibility to relate issues
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 val libsAreProvided = true
29 kotlin {
30 sourceSets {
31 val main by getting {
32 dependencies {
33 arrayOf(
34 "jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api:3.0.0",
35 "org.glassfish.web:jakarta.servlet.jsp.jstl:3.0.1",
36 "org.postgresql:postgresql:42.5.1"
37 ).forEach {
38 if (libsAreProvided) compileOnly(it) else implementation(it)
39 }
40 compileOnly("jakarta.servlet:jakarta.servlet-api:6.0.0")
41 val flexmarkVersion = "0.64.0"
42 implementation("com.vladsch.flexmark:flexmark:${flexmarkVersion}")
43 implementation("com.vladsch.flexmark:flexmark-util-data:${flexmarkVersion}")
44 implementation("com.vladsch.flexmark:flexmark-ext-tables:${flexmarkVersion}")
45 implementation("com.vladsch.flexmark:flexmark-ext-gfm-strikethrough:${flexmarkVersion}")
46 implementation("io.github.java-diff-utils:java-diff-utils:4.12")
47 }
48 }
49 }
50 }