-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
100 lines (85 loc) · 3.64 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
96
97
98
99
100
val kotlin_version = "2.0.21"
val ktor_version = "3.0.1"
val exposed_version = "0.56.0"
val kotlinx_datetime_version = "0.6.1"
val logback_version = "1.5.12"
val kotlinx_html_version = "0.11.0"
val kotlin_serialization_version = "1.6.2"
plugins {
kotlin("jvm") version "2.0.21"
id("io.ktor.plugin") version "3.0.1"
id("org.jetbrains.kotlin.plugin.serialization") version "2.0.21"
id("com.github.ben-manes.versions") version "0.51.0"
}
group = "com.budgetai"
version = "0.0.1"
application {
mainClass.set("com.budgetai.ApplicationKt")
}
repositories {
mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-js-wrappers") }
}
ktor {
fatJar {
archiveFileName.set("app-all.jar")
}
}
tasks.jar {
manifest {
attributes(
mapOf(
"Main-Class" to application.mainClass.get()
)
)
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from("src/main/resources") {
include("**/*")
}
}
dependencies {
// Ktor Server Core Dependencies
implementation("io.ktor:ktor-server-core-jvm:$ktor_version")
implementation("io.ktor:ktor-server-netty-jvm:$ktor_version")
implementation("io.ktor:ktor-server-host-common-jvm:$ktor_version")
// Ktor Server Features
implementation("io.ktor:ktor-server-auth-jvm:$ktor_version")
implementation("io.ktor:ktor-server-auth-jwt-jvm:$ktor_version")
implementation("io.ktor:ktor-server-resources-jvm:$ktor_version")
implementation("io.ktor:ktor-server-status-pages-jvm:$ktor_version")
implementation("io.ktor:ktor-server-cors-jvm:$ktor_version")
// Ktor Content Negotiation & Serialization
implementation("io.ktor:ktor-server-content-negotiation-jvm:$ktor_version")
implementation("io.ktor:ktor-serialization-jackson-jvm:$ktor_version")
implementation("io.ktor:ktor-serialization-kotlinx-json-jvm:$ktor_version")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlin_serialization_version")
// clients
implementation("io.ktor:ktor-client-core-jvm:$ktor_version")
implementation("io.ktor:ktor-client-cio-jvm:$ktor_version")
implementation("io.ktor:ktor-client-content-negotiation-jvm:$ktor_version")
implementation("io.ktor:ktor-client-json-jvm:$ktor_version")
implementation("io.ktor:ktor-client-serialization-jvm:$ktor_version")
// Ktor Templates & Frontend
implementation("io.ktor:ktor-server-html-builder-jvm:$ktor_version")
implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:$kotlinx_html_version")
implementation("org.jetbrains:kotlin-css-jvm:1.0.0-pre.129-kotlin-1.4.20")
implementation("org.jetbrains.kotlin-wrappers:kotlin-css:1.0.0-pre.625")
// Database
implementation("org.jetbrains.exposed:exposed-core:$exposed_version")
implementation("org.jetbrains.exposed:exposed-jdbc:$exposed_version")
implementation("org.jetbrains.exposed:exposed-dao:$exposed_version")
implementation("org.jetbrains.exposed:exposed-kotlin-datetime:$exposed_version")
implementation("org.jetbrains.exposed:exposed-json:$exposed_version")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:$kotlinx_datetime_version")
implementation("org.xerial:sqlite-jdbc:3.47.0.0")
implementation("org.flywaydb:flyway-core:10.21.0")
// AWS SDK
implementation("aws.sdk.kotlin:s3:1.0.30")
implementation("aws.sdk.kotlin:aws-core:1.0.30")
// Logging
implementation("ch.qos.logback:logback-classic:$logback_version")
// Testing
testImplementation("io.ktor:ktor-server-test-host-jvm:$ktor_version")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
}