Mon, 09 Aug 2021 16:28:42 +0200
adds changelog entries
1 import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
3 plugins {
4 kotlin("jvm") version "1.5.21"
5 war
6 }
7 group = "de.uapcore"
8 version = "0.6-SNAPSHOT"
10 val log4jVersion = "2.13.1"
11 val slf4jVersion = "1.7.30"
12 val flexmarkVersion = "0.62.2"
14 repositories {
15 mavenCentral()
16 }
18 tasks.withType<KotlinCompile>().configureEach {
19 kotlinOptions.jvmTarget = "11"
20 }
22 // remove after removing all java sources
23 tasks.withType<JavaCompile>().configureEach {
24 sourceCompatibility = "11"
25 targetCompatibility = "11"
26 }
28 tasks.war {
29 archiveFileName.set("lightpit.war")
30 from("src/main/resources")
31 }
33 kotlin {
34 sourceSets {
35 val main by getting {
36 dependencies {
37 compileOnly("javax.servlet:javax.servlet-api:3.1.0")
38 compileOnly("javax.servlet:jstl:1.2")
39 implementation("org.slf4j:slf4j-api:${slf4jVersion}")
40 implementation("org.apache.logging.log4j:log4j-core:${log4jVersion}")
41 implementation("org.apache.logging.log4j:log4j-slf4j-impl:${log4jVersion}")
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 }
47 }
48 }
49 }