build.gradle.kts

changeset 262
c357c4e69b9e
parent 258
564ae07a6def
child 272
edb6f12b334b
equal deleted inserted replaced
261:1467d182cfe3 262:c357c4e69b9e
23 duplicatesStrategy = DuplicatesStrategy.WARN 23 duplicatesStrategy = DuplicatesStrategy.WARN
24 archiveFileName.set("lightpit.war") 24 archiveFileName.set("lightpit.war")
25 from("src/main/resources") 25 from("src/main/resources")
26 } 26 }
27 27
28 val libsAreProvided = true
28 kotlin { 29 kotlin {
29 sourceSets { 30 sourceSets {
30 val main by getting { 31 val main by getting {
31 dependencies { 32 dependencies {
32 // change the following to compileOnly, if you already have them on your server 33 arrayOf(
33 implementation("jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api:3.0.0") 34 "jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api:3.0.0",
34 implementation("org.glassfish.web:jakarta.servlet.jsp.jstl:3.0.1") 35 "org.glassfish.web:jakarta.servlet.jsp.jstl:3.0.1",
35 implementation("org.postgresql:postgresql:42.5.1") 36 "org.postgresql:postgresql:42.5.1"
37 ).forEach {
38 if (libsAreProvided) compileOnly(it) else implementation(it)
39 }
36 compileOnly("jakarta.servlet:jakarta.servlet-api:6.0.0") 40 compileOnly("jakarta.servlet:jakarta.servlet-api:6.0.0")
37 val flexmarkVersion = "0.64.0" 41 val flexmarkVersion = "0.64.0"
38 implementation("com.vladsch.flexmark:flexmark:${flexmarkVersion}") 42 implementation("com.vladsch.flexmark:flexmark:${flexmarkVersion}")
39 implementation("com.vladsch.flexmark:flexmark-util-data:${flexmarkVersion}") 43 implementation("com.vladsch.flexmark:flexmark-util-data:${flexmarkVersion}")
40 implementation("com.vladsch.flexmark:flexmark-ext-tables:${flexmarkVersion}") 44 implementation("com.vladsch.flexmark:flexmark-ext-tables:${flexmarkVersion}")

mercurial