build.gradle.kts

Mon, 09 Aug 2021 16:58:38 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 09 Aug 2021 16:58:38 +0200
changeset 218
0e4a9b6f7a12
parent 209
c9c6abf167c7
child 236
819c5178b6fe
permissions
-rw-r--r--

Added tag v0.6 for changeset a5ad7cd5d000

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
    kotlin("jvm") version "1.5.21"
    war
}
group = "de.uapcore"
version = "0.6-SNAPSHOT"

val log4jVersion = "2.13.1"
val slf4jVersion = "1.7.30"
val flexmarkVersion = "0.62.2"

repositories {
    mavenCentral()
}

tasks.withType<KotlinCompile>().configureEach {
    kotlinOptions.jvmTarget = "11"
}

// remove after removing all java sources
tasks.withType<JavaCompile>().configureEach {
    sourceCompatibility = "11"
    targetCompatibility = "11"
}

tasks.war {
    archiveFileName.set("lightpit.war")
    from("src/main/resources")
}

kotlin {
    sourceSets {
        val main by getting {
            dependencies {
                compileOnly("javax.servlet:javax.servlet-api:3.1.0")
                compileOnly("javax.servlet:jstl:1.2")
                implementation("org.slf4j:slf4j-api:${slf4jVersion}")
                implementation("org.apache.logging.log4j:log4j-core:${log4jVersion}")
                implementation("org.apache.logging.log4j:log4j-slf4j-impl:${log4jVersion}")
                implementation("com.vladsch.flexmark:flexmark:${flexmarkVersion}")
                implementation("com.vladsch.flexmark:flexmark-util-data:${flexmarkVersion}")
                implementation("com.vladsch.flexmark:flexmark-ext-tables:${flexmarkVersion}")
                implementation("com.vladsch.flexmark:flexmark-ext-gfm-strikethrough:${flexmarkVersion}")
            }
        }
    }
}

mercurial