-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
66 lines (57 loc) · 2.23 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
val ktorVersion: String by project
val kotlinVersion: String by project
val logbackVersion: String by project
val caffeineVersion: String by project
val serializationVersion: String by project
val exposedVersion: String by project
val h2Version: String by project
val hikariVersion: String by project
plugins {
application
kotlin("jvm") version "1.9.10"
kotlin("plugin.serialization") version "1.9.10"
id("com.github.johnrengelman.shadow") version "8.1.1"
}
group = "com.flxrs"
version = "1.10"
application {
mainClass.set("io.ktor.server.netty.EngineMain")
}
kotlin {
jvmToolchain(17)
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation("io.ktor:ktor-server-core:$ktorVersion")
implementation("io.ktor:ktor-server-netty:$ktorVersion")
implementation("io.ktor:ktor-server-call-logging:$ktorVersion")
implementation("io.ktor:ktor-server-content-negotiation:$ktorVersion")
implementation("io.ktor:ktor-server-metrics:$ktorVersion")
implementation("io.ktor:ktor-server-auth:$ktorVersion")
implementation("io.ktor:ktor-server-default-headers:$ktorVersion")
implementation("io.ktor:ktor-client-core:$ktorVersion")
implementation("io.ktor:ktor-client-okhttp:$ktorVersion")
implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
implementation("io.ktor:ktor-client-logging:$ktorVersion")
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
implementation("com.github.ben-manes.caffeine:caffeine:$caffeineVersion")
implementation("ch.qos.logback:logback-classic:$logbackVersion")
implementation("org.jetbrains.exposed:exposed-core:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-jdbc:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-dao:$exposedVersion")
implementation("com.h2database:h2:$h2Version")
implementation("com.zaxxer:HikariCP:$hikariVersion")
implementation(kotlin("stdlib-jdk8"))
}
tasks.withType<ShadowJar> {
archiveBaseName.set("dankchat-api")
archiveClassifier.set("")
archiveVersion.set("")
manifest {
attributes(Pair("Main-Class", "io.ktor.server.netty.EngineMain"))
}
}