-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
45 lines (40 loc) · 1.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
plugins {
alias(libs.plugins.org.jetbrains.kotlin.jvm)
alias(libs.plugins.io.ktor.plugin)
alias(libs.plugins.org.jetbrains.kotlin.plugin.serialization)
}
group = "io.ktor.answers"
version = "0.0.1"
application {
mainClass.set("io.ktor.server.netty.EngineMain")
val isDevelopment: Boolean = project.ext.has("development")
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
}
repositories {
mavenCentral()
}
dependencies {
implementation(libs.ktor.server.core.jvm)
implementation(libs.ktor.server.cors.jvm)
implementation(libs.ktor.server.content.negotiation.jvm)
implementation(libs.ktor.serialization.kotlinx.json.jvm)
implementation(libs.ktor.server.host.common.jvm)
implementation(libs.ktor.server.status.pages.jvm)
implementation(libs.ktor.server.netty.jvm)
implementation(libs.ktor.server.resources)
implementation(libs.logback.classic)
implementation(libs.exposed.core)
implementation(libs.exposed.dao)
implementation(libs.exposed.jdbc)
implementation(libs.exposed.kotlin.datetime)
implementation(libs.liquibase)
runtimeOnly(libs.postgres)
testImplementation(kotlin("test"))
testImplementation(libs.ktor.server.tests.jvm)
testImplementation(libs.testcontainers.postgres)
testImplementation(libs.testcontainers.jupiter)
testImplementation(libs.kotlinx.coroutines.test)
}
tasks.test {
useJUnitPlatform()
}