-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle.kts
69 lines (63 loc) · 2.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
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 database_driver_version: String by project
val jbcrypt_version: String by project
val hikaricp_version: String by project
val redis_version: String by project
plugins {
application
jacoco
kotlin("jvm") version "2.0.21"
id("org.jetbrains.kotlin.plugin.serialization") version "2.0.20"
id("com.github.johnrengelman.shadow") version "7.0.0"
id("org.sonarqube") version "5.1.0.4882"
}
tasks {
shadowJar {
manifest {
attributes(Pair("Main-Class", "com.personia.ApplicationKt"))
}
}
jacocoTestReport {
reports {
xml.required.set(true)
}
}
}
group = "com.personia"
version = "0.0.1"
application {
mainClass.set("com.personia.ApplicationKt")
val isDevelopment: Boolean = project.ext.has("development")
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
}
repositories {
mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/ktor/eap") }
}
dependencies {
implementation("ch.qos.logback:logback-classic:$logback_version")
implementation("org.jetbrains.exposed:exposed-core:$exposed_version")
implementation("org.jetbrains.exposed:exposed-dao:$exposed_version")
implementation("org.jetbrains.exposed:exposed-jdbc:$exposed_version")
// add database driver below, default is postgres
implementation("org.postgresql:postgresql:$database_driver_version")
implementation("org.mindrot:jbcrypt:$jbcrypt_version")
implementation("io.github.crackthecodeabhi:kreds:$redis_version")
implementation("com.zaxxer:HikariCP:$hikaricp_version")
implementation("io.ktor:ktor-client-content-negotiation:$ktor_version")
implementation("io.ktor:ktor-server-content-negotiation-jvm:$ktor_version")
implementation("io.ktor:ktor-client-content-negotiation:$ktor_version")
implementation("io.ktor:ktor-server-core-jvm:$ktor_version")
implementation("io.ktor:ktor-serialization-gson:$ktor_version")
implementation("io.ktor:ktor-server-netty-jvm:$ktor_version")
implementation("io.ktor:ktor-server-auth:$ktor_version")
implementation("io.ktor:ktor-server-status-pages:$ktor_version")
implementation("io.ktor:ktor-server-auth-jwt:$ktor_version")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
testImplementation("org.jetbrains.kotlin:kotlin-test:$kotlin_version")
testImplementation("io.ktor:ktor-server-tests-jvm:$ktor_version")
testImplementation("io.ktor:ktor-server-test-host-jvm:$ktor_version")
}