This repository has been archived by the owner on Jun 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle.kts
83 lines (60 loc) · 2.42 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import com.github.jengelman.gradle.plugins.shadow.transformers.ServiceFileTransformer
plugins {
id("maven-publish")
id("application")
id("com.github.johnrengelman.shadow") version "7.1.2"
kotlin("plugin.serialization") version "1.9.0-Beta"
kotlin("jvm") version "1.9.10"
}
group = "org.freenet.website"
version = "1.2-SNAPSHOT"
repositories {
mavenLocal()
mavenCentral()
}
val ktorVersion: String by project
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib")
implementation("com.google.guava:guava:33.2.0-jre")
implementation("io.kweb:kweb-core:1.4.9")
implementation("org.slf4j:slf4j-simple:2.0.13")
implementation("com.google.cloud:google-cloud-firestore:3.9.1")
implementation("com.github.mfornos:humanize-slim:1.2.2")
implementation("io.github.microutils:kotlin-logging:4.0.0-beta-2")
implementation("com.google.cloud:google-cloud-logging-logback:0.127.10-alpha")
implementation("org.jsoup:jsoup:1.17.2")
implementation("org.kohsuke:github-api:1.321")
constraints {
implementation("com.fasterxml.jackson.core:jackson-databind:2.14.0-rc2") {
because("""
CVE-2022-42003 7.5 Deserialization of Untrusted Data vulnerability pending CVSS allocation
CVE-2022-42004 7.5 Deserialization of Untrusted Data vulnerability pending CVSS allocation
""".trimIndent())
}
}
implementation("org.bouncycastle:bcprov-jdk15on:1.70")
implementation("io.ktor:ktor-client-core-jvm:2.3.0")
implementation("io.ktor:ktor-client-cio-jvm:2.3.0")
implementation("io.ktor:ktor-client-content-negotiation:2.3.0")
implementation("io.ktor:ktor-serialization-kotlinx-json:2.3.0")
implementation("com.squareup.okhttp3:okhttp:5.0.0-alpha.11")
implementation("org.commonmark:commonmark:0.21.0")
testImplementation("org.seleniumhq.selenium:selenium-java:4.9.1")
testImplementation(platform("org.junit:junit-bom:5.9.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
application {
mainClass.set("org.freenet.website.MainKt")
}
tasks {
test {
useJUnitPlatform()
}
withType(ShadowJar::class.java) {
transform(ServiceFileTransformer::class.java) {
setPath("META-INF/services")
include("org.eclipse.jetty.http.HttpFieldPreEncoder")
}
}
}