build.gradle.kts

Fri, 18 Dec 2020 16:09:20 +0100

author
Mike Becker <universe@uap-core.de>
date
Fri, 18 Dec 2020 16:09:20 +0100
changeset 164
003b08bb3f25
parent 162
2adc8623dd89
child 166
6eede6088d41
permissions
-rw-r--r--

Update issue "updated" date when a comment is added or changed - fixes #111

151
b3f14cd4f3ab migrate DataSourceProvider
Mike Becker <universe@uap-core.de>
parents: 147
diff changeset
1 import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
147
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
3 plugins {
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
4 kotlin("jvm") version "1.4.10"
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5 war
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
6 }
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
7 group = "de.uapcore"
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
8 version = "0.5-SNAPSHOT"
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
9
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
10 val log4jVersion = "2.13.1"
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
11 val slf4jVersion = "1.7.30"
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
12
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
13 repositories {
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
14 mavenCentral()
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
15 }
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
16
151
b3f14cd4f3ab migrate DataSourceProvider
Mike Becker <universe@uap-core.de>
parents: 147
diff changeset
17 tasks.withType<KotlinCompile>().configureEach {
b3f14cd4f3ab migrate DataSourceProvider
Mike Becker <universe@uap-core.de>
parents: 147
diff changeset
18 kotlinOptions.jvmTarget = "11"
b3f14cd4f3ab migrate DataSourceProvider
Mike Becker <universe@uap-core.de>
parents: 147
diff changeset
19 }
b3f14cd4f3ab migrate DataSourceProvider
Mike Becker <universe@uap-core.de>
parents: 147
diff changeset
20
147
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
21 tasks.war {
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
22 archiveFileName.set("lightpit.war")
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
23 from("src/main/resources")
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
24 }
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
25
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
26 kotlin {
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
27 sourceSets {
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
28 val main by getting {
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
29 dependencies {
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
30 compileOnly("javax.servlet:javax.servlet-api:3.1.0")
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
31 compileOnly("javax.servlet:jstl:1.2")
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
32 implementation("org.slf4j:slf4j-api:${slf4jVersion}")
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
33 implementation("org.apache.logging.log4j:log4j-core:${log4jVersion}")
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
34 implementation("org.apache.logging.log4j:log4j-slf4j-impl:${log4jVersion}")
162
2adc8623dd89 enables markdown support in issue descriptions and comments - fixes #10
Mike Becker <universe@uap-core.de>
parents: 151
diff changeset
35 implementation("com.vladsch.flexmark:flexmark-all:0.62.2")
147
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
36 }
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
37 }
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
38 }
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
39 }

mercurial