Thu, 29 Dec 2022 14:50:35 +0100
#164 add issue summary for developers
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 { |
254
55ca6cafc3dd
#233 migrate to Jakarta EE and update dependencies
Mike Becker <universe@uap-core.de>
parents:
247
diff
changeset
|
4 | kotlin("jvm") version "1.7.21" |
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" |
254
55ca6cafc3dd
#233 migrate to Jakarta EE and update dependencies
Mike Becker <universe@uap-core.de>
parents:
247
diff
changeset
|
8 | version = "1.0-SNAPSHOT" |
147
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 | repositories { |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
11 | mavenCentral() |
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 | |
151
b3f14cd4f3ab
migrate DataSourceProvider
Mike Becker <universe@uap-core.de>
parents:
147
diff
changeset
|
14 | tasks.withType<KotlinCompile>().configureEach { |
b3f14cd4f3ab
migrate DataSourceProvider
Mike Becker <universe@uap-core.de>
parents:
147
diff
changeset
|
15 | kotlinOptions.jvmTarget = "11" |
b3f14cd4f3ab
migrate DataSourceProvider
Mike Becker <universe@uap-core.de>
parents:
147
diff
changeset
|
16 | } |
b3f14cd4f3ab
migrate DataSourceProvider
Mike Becker <universe@uap-core.de>
parents:
147
diff
changeset
|
17 | |
147
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
18 | tasks.war { |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
19 | archiveFileName.set("lightpit.war") |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
20 | from("src/main/resources") |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
21 | } |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
22 | |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
23 | kotlin { |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
24 | sourceSets { |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
25 | val main by getting { |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
26 | dependencies { |
254
55ca6cafc3dd
#233 migrate to Jakarta EE and update dependencies
Mike Becker <universe@uap-core.de>
parents:
247
diff
changeset
|
27 | // change the following to compileOnly, if you already have them on your server |
55ca6cafc3dd
#233 migrate to Jakarta EE and update dependencies
Mike Becker <universe@uap-core.de>
parents:
247
diff
changeset
|
28 | implementation("jakarta.servlet.jsp.jstl:jakarta.servlet.jsp.jstl-api:3.0.0") |
55ca6cafc3dd
#233 migrate to Jakarta EE and update dependencies
Mike Becker <universe@uap-core.de>
parents:
247
diff
changeset
|
29 | implementation("org.glassfish.web:jakarta.servlet.jsp.jstl:3.0.1") |
55ca6cafc3dd
#233 migrate to Jakarta EE and update dependencies
Mike Becker <universe@uap-core.de>
parents:
247
diff
changeset
|
30 | implementation("org.postgresql:postgresql:42.5.1") |
55ca6cafc3dd
#233 migrate to Jakarta EE and update dependencies
Mike Becker <universe@uap-core.de>
parents:
247
diff
changeset
|
31 | compileOnly("jakarta.servlet:jakarta.servlet-api:6.0.0") |
55ca6cafc3dd
#233 migrate to Jakarta EE and update dependencies
Mike Becker <universe@uap-core.de>
parents:
247
diff
changeset
|
32 | val flexmarkVersion = "0.64.0" |
166
6eede6088d41
minimize footprint of flexmark - fixes #116
Mike Becker <universe@uap-core.de>
parents:
162
diff
changeset
|
33 | implementation("com.vladsch.flexmark:flexmark:${flexmarkVersion}") |
6eede6088d41
minimize footprint of flexmark - fixes #116
Mike Becker <universe@uap-core.de>
parents:
162
diff
changeset
|
34 | 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
|
35 | 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
|
36 | implementation("com.vladsch.flexmark:flexmark-ext-gfm-strikethrough:${flexmarkVersion}") |
254
55ca6cafc3dd
#233 migrate to Jakarta EE and update dependencies
Mike Becker <universe@uap-core.de>
parents:
247
diff
changeset
|
37 | implementation("io.github.java-diff-utils:java-diff-utils:4.12") |
147
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 | } |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
40 | } |
dfec8c5f8db0
migrates from maven to gradle (prepares kotlin migration)
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
41 | } |