build.gradle.kts

Sat, 04 Jun 2022 18:47:06 +0200

author
Mike Becker <universe@uap-core.de>
date
Sat, 04 Jun 2022 18:47:06 +0200
changeset 251
7ea0f266da41
parent 247
e71ae69c68c0
child 254
55ca6cafc3dd
permissions
-rw-r--r--

add 'updated' to issues table

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 {
246
9a81a11be70e upgrade log4j version + make build jdk 17 ready
Mike Becker <universe@uap-core.de>
parents: 236
diff changeset
4 kotlin("jvm") version "1.5.32"
147
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"
190
a83f1ab56898 fixes #138 - ResultSet processing for summaries
Mike Becker <universe@uap-core.de>
parents: 174
diff changeset
8 version = "0.6-SNAPSHOT"
147
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
9
166
6eede6088d41 minimize footprint of flexmark - fixes #116
Mike Becker <universe@uap-core.de>
parents: 162
diff changeset
10 val flexmarkVersion = "0.62.2"
147
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
11
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
12 repositories {
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
13 mavenCentral()
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
14 }
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
15
151
b3f14cd4f3ab migrate DataSourceProvider
Mike Becker <universe@uap-core.de>
parents: 147
diff changeset
16 tasks.withType<KotlinCompile>().configureEach {
b3f14cd4f3ab migrate DataSourceProvider
Mike Becker <universe@uap-core.de>
parents: 147
diff changeset
17 kotlinOptions.jvmTarget = "11"
b3f14cd4f3ab migrate DataSourceProvider
Mike Becker <universe@uap-core.de>
parents: 147
diff changeset
18 }
b3f14cd4f3ab migrate DataSourceProvider
Mike Becker <universe@uap-core.de>
parents: 147
diff changeset
19
174
690a9aad3f16 set target JDK to 11, even if compiled with > 11
Mike Becker <universe@uap-core.de>
parents: 166
diff changeset
20 // remove after removing all java sources
690a9aad3f16 set target JDK to 11, even if compiled with > 11
Mike Becker <universe@uap-core.de>
parents: 166
diff changeset
21 tasks.withType<JavaCompile>().configureEach {
690a9aad3f16 set target JDK to 11, even if compiled with > 11
Mike Becker <universe@uap-core.de>
parents: 166
diff changeset
22 sourceCompatibility = "11"
690a9aad3f16 set target JDK to 11, even if compiled with > 11
Mike Becker <universe@uap-core.de>
parents: 166
diff changeset
23 targetCompatibility = "11"
690a9aad3f16 set target JDK to 11, even if compiled with > 11
Mike Becker <universe@uap-core.de>
parents: 166
diff changeset
24 }
690a9aad3f16 set target JDK to 11, even if compiled with > 11
Mike Becker <universe@uap-core.de>
parents: 166
diff changeset
25
147
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
26 tasks.war {
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
27 archiveFileName.set("lightpit.war")
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
28 from("src/main/resources")
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
29 }
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
30
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
31 kotlin {
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
32 sourceSets {
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
33 val main by getting {
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
34 dependencies {
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
35 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
36 compileOnly("javax.servlet:jstl:1.2")
166
6eede6088d41 minimize footprint of flexmark - fixes #116
Mike Becker <universe@uap-core.de>
parents: 162
diff changeset
37 implementation("com.vladsch.flexmark:flexmark:${flexmarkVersion}")
6eede6088d41 minimize footprint of flexmark - fixes #116
Mike Becker <universe@uap-core.de>
parents: 162
diff changeset
38 implementation("com.vladsch.flexmark:flexmark-util-data:${flexmarkVersion}")
6eede6088d41 minimize footprint of flexmark - fixes #116
Mike Becker <universe@uap-core.de>
parents: 162
diff changeset
39 implementation("com.vladsch.flexmark:flexmark-ext-tables:${flexmarkVersion}")
6eede6088d41 minimize footprint of flexmark - fixes #116
Mike Becker <universe@uap-core.de>
parents: 162
diff changeset
40 implementation("com.vladsch.flexmark:flexmark-ext-gfm-strikethrough:${flexmarkVersion}")
236
819c5178b6fe add diffs to RSS feed
Mike Becker <universe@uap-core.de>
parents: 209
diff changeset
41 implementation("io.github.java-diff-utils:java-diff-utils:4.5")
147
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
42 }
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
43 }
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
44 }
dfec8c5f8db0 migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff changeset
45 }

mercurial