-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
95 lines (72 loc) · 2.95 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
84
85
86
87
88
89
90
91
92
93
94
95
val ktor_version: String by project
val kotlin_version: String by project
val logback_version: String by project
val exposed_version: String by project
val h2_version: String by project
val bcrypt_version: String by project
plugins {
kotlin("jvm") version "1.9.10"
id("io.ktor.plugin") version "2.3.5"
id("org.jetbrains.kotlin.plugin.serialization") version "1.9.10"
}
group = "com.garfiec"
version = "0.0.1"
application {
mainClass.set("com.garfiec.ApplicationKt")
val isDevelopment: Boolean = project.ext.has("development")
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
}
repositories {
mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-js-wrappers") }
}
dependencies {
// Ktor Server
implementation("io.ktor:ktor-server-core-jvm")
implementation("io.ktor:ktor-serialization-kotlinx-json-jvm")
implementation("io.ktor:ktor-server-content-negotiation-jvm")
// Ktor Client
implementation("io.ktor:ktor-client-core:$ktor_version")
implementation("io.ktor:ktor-client-cio:$ktor_version")
// Exposed
implementation("org.jetbrains.exposed:exposed-core:$exposed_version")
implementation("org.jetbrains.exposed:exposed-dao:$exposed_version")
implementation("org.jetbrains.exposed:exposed-jdbc:$exposed_version")
implementation("org.jetbrains.exposed:exposed-java-time:$exposed_version")
implementation("org.jetbrains.exposed:exposed-json:$exposed_version")
// Joda Time (Used by exposed)
implementation("joda-time:joda-time:2.10.13")
// DB
implementation("com.h2database:h2:$h2_version")
implementation("org.postgresql:postgresql:42.6.0")
// Ktor plugins
implementation("io.ktor:ktor-server-html-builder-jvm")
implementation("org.jetbrains:kotlin-css-jvm:1.0.0-pre.129-kotlin-1.4.20")
implementation("io.ktor:ktor-server-host-common-jvm")
implementation("io.ktor:ktor-server-auth-jvm")
implementation("io.ktor:ktor-server-auth-jwt-jvm")
implementation("io.ktor:ktor-server-netty-jvm")
implementation("io.ktor:ktor-server-call-logging")
// Etc
implementation("org.slf4j:slf4j-api:2.0.9")
implementation("ch.qos.logback:logback-classic:$logback_version")
// Password Hashing
implementation("at.favre.lib:bcrypt:$bcrypt_version")
// S3
implementation("io.minio:minio:8.5.6")
// OpenAI
implementation("com.aallam.openai:openai-client:3.5.1")
// Image handling
// implementation("com.twelvemonkeys.imageio:imageio-bmp:3.10.0")
// implementation("com.twelvemonkeys.imageio:imageio-gif:3.10.0")
implementation("com.twelvemonkeys.imageio:imageio-jpeg:3.10.0")
// implementation("com.twelvemonkeys.imageio:imageio-png:3.10.0")
// Testing
testImplementation("io.ktor:ktor-server-tests-jvm")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
}
ktor {
fatJar {
archiveFileName.set("soulsavor.jar")
}
}