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)

     1 import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
     3 plugins {
     4     kotlin("jvm") version "1.7.21"
     5     war
     6 }
     7 group = "de.uapcore"
     8 version = "1.0-SNAPSHOT"
    10 repositories {
    11     mavenCentral()
    12 }
    14 tasks.withType<KotlinCompile>().configureEach {
    15     kotlinOptions.jvmTarget = "11"
    16 }
    18 // remove after removing all java sources
    19 tasks.withType<JavaCompile>().configureEach {
    20     sourceCompatibility = "11"
    21     targetCompatibility = "11"
    22 }
    24 tasks.war {
    25     archiveFileName.set("lightpit.war")
    26     from("src/main/resources")
    27 }
    29 kotlin {
    30     sourceSets {
    31         val main by getting {
    32             dependencies {
    33                 // change the following to compileOnly, if you already have them on your server
    34                 implementation("jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api:3.0.0")
    35                 implementation("org.glassfish.web:jakarta.servlet.jsp.jstl:3.0.1")
    36                 implementation("org.postgresql:postgresql:42.5.1")
    37                 compileOnly("jakarta.servlet:jakarta.servlet-api:6.0.0")
    38                 val flexmarkVersion = "0.64.0"
    39                 implementation("com.vladsch.flexmark:flexmark:${flexmarkVersion}")
    40                 implementation("com.vladsch.flexmark:flexmark-util-data:${flexmarkVersion}")
    41                 implementation("com.vladsch.flexmark:flexmark-ext-tables:${flexmarkVersion}")
    42                 implementation("com.vladsch.flexmark:flexmark-ext-gfm-strikethrough:${flexmarkVersion}")
    43                 implementation("io.github.java-diff-utils:java-diff-utils:4.12")
    44             }
    45         }
    46     }
    47 }

mercurial