build.gradle.kts

changeset 275
b199f9cf1a75
parent 274
e529a7cd4f17
child 279
d73537b925af
equal deleted inserted replaced
274:e529a7cd4f17 275:b199f9cf1a75
1 import org.jetbrains.kotlin.gradle.tasks.KotlinCompile 1 import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2 2
3 plugins { 3 plugins {
4 kotlin("jvm") version "1.7.21" 4 kotlin("jvm") version "1.9.0"
5 war 5 war
6 } 6 }
7 group = "de.uapcore" 7 group = "de.uapcore"
8 version = "1.0.1" 8 version = "1.0.1"
9 9
11 mavenCentral() 11 mavenCentral()
12 } 12 }
13 13
14 tasks.withType<KotlinCompile>().configureEach { 14 tasks.withType<KotlinCompile>().configureEach {
15 kotlinOptions.jvmTarget = "11" 15 kotlinOptions.jvmTarget = "11"
16 }
17
18 tasks.withType<JavaCompile>().configureEach {
19 targetCompatibility = "11"
16 } 20 }
17 21
18 tasks.jar { 22 tasks.jar {
19 enabled = false 23 enabled = false
20 } 24 }
31 val main by getting { 35 val main by getting {
32 dependencies { 36 dependencies {
33 arrayOf( 37 arrayOf(
34 "jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api:3.0.0", 38 "jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api:3.0.0",
35 "org.glassfish.web:jakarta.servlet.jsp.jstl:3.0.1", 39 "org.glassfish.web:jakarta.servlet.jsp.jstl:3.0.1",
36 "org.postgresql:postgresql:42.5.1" 40 "org.postgresql:postgresql:42.6.0"
37 ).forEach { 41 ).forEach {
38 if (libsAreProvided) compileOnly(it) else implementation(it) 42 if (libsAreProvided) compileOnly(it) else implementation(it)
39 } 43 }
40 compileOnly("jakarta.servlet:jakarta.servlet-api:6.0.0") 44 compileOnly("jakarta.servlet:jakarta.servlet-api:6.0.0")
41 val flexmarkVersion = "0.64.0" 45 val flexmarkVersion = "0.64.8"
42 implementation("com.vladsch.flexmark:flexmark:${flexmarkVersion}") 46 implementation("com.vladsch.flexmark:flexmark:${flexmarkVersion}")
43 implementation("com.vladsch.flexmark:flexmark-util-data:${flexmarkVersion}") 47 implementation("com.vladsch.flexmark:flexmark-util-data:${flexmarkVersion}")
44 implementation("com.vladsch.flexmark:flexmark-ext-tables:${flexmarkVersion}") 48 implementation("com.vladsch.flexmark:flexmark-ext-tables:${flexmarkVersion}")
45 implementation("com.vladsch.flexmark:flexmark-ext-gfm-strikethrough:${flexmarkVersion}") 49 implementation("com.vladsch.flexmark:flexmark-ext-gfm-strikethrough:${flexmarkVersion}")
46 implementation("io.github.java-diff-utils:java-diff-utils:4.12") 50 implementation("io.github.java-diff-utils:java-diff-utils:4.12")

mercurial