build.gradle.kts

Thu, 29 Dec 2022 13:58:08 +0100

author
Mike Becker <universe@uap-core.de>
date
Thu, 29 Dec 2022 13:58:08 +0100
changeset 255
1270f91b4c22
parent 254
55ca6cafc3dd
child 256
a7da88714dc3
permissions
-rw-r--r--

update from gradle 7.3 to 7.6

And hope that this fixes an idiotic internal
duplication error
(see https://github.com/gradle/gradle/issues/17236)

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

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

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 {
                // change the following to compileOnly, if you already have them on your server
                implementation("jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api:3.0.0")
                implementation("org.glassfish.web:jakarta.servlet.jsp.jstl:3.0.1")
                implementation("org.postgresql:postgresql:42.5.1")
                compileOnly("jakarta.servlet:jakarta.servlet-api:6.0.0")
                val flexmarkVersion = "0.64.0"
                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}")
                implementation("io.github.java-diff-utils:java-diff-utils:4.12")
            }
        }
    }
}

mercurial