build.gradle.kts

Sun, 20 Dec 2020 11:06:25 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 20 Dec 2020 11:06:25 +0100
changeset 166
6eede6088d41
parent 162
2adc8623dd89
child 174
690a9aad3f16
permissions
-rw-r--r--

minimize footprint of flexmark - fixes #116

     1 import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
     3 plugins {
     4     kotlin("jvm") version "1.4.10"
     5     war
     6 }
     7 group = "de.uapcore"
     8 version = "0.5-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 tasks.war {
    23     archiveFileName.set("lightpit.war")
    24     from("src/main/resources")
    25 }
    27 kotlin {
    28     sourceSets {
    29         val main by getting {
    30             dependencies {
    31                 compileOnly("javax.servlet:javax.servlet-api:3.1.0")
    32                 compileOnly("javax.servlet:jstl:1.2")
    33                 implementation("org.slf4j:slf4j-api:${slf4jVersion}")
    34                 implementation("org.apache.logging.log4j:log4j-core:${log4jVersion}")
    35                 implementation("org.apache.logging.log4j:log4j-slf4j-impl:${log4jVersion}")
    36                 implementation("com.vladsch.flexmark:flexmark:${flexmarkVersion}")
    37                 implementation("com.vladsch.flexmark:flexmark-util-data:${flexmarkVersion}")
    38                 implementation("com.vladsch.flexmark:flexmark-ext-tables:${flexmarkVersion}")
    39                 implementation("com.vladsch.flexmark:flexmark-ext-gfm-strikethrough:${flexmarkVersion}")
    40             }
    41         }
    42     }
    43 }

mercurial