46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
plugins {
|
||
application
|
||
kotlin("jvm") version "2.0.21"
|
||
kotlin("plugin.serialization") version "1.8.21"
|
||
}
|
||
|
||
application {
|
||
mainClass.set("com.example.ApplicationKt") // путь к твоему `main`
|
||
}
|
||
|
||
group = "org.example"
|
||
version = "1.0-SNAPSHOT"
|
||
|
||
repositories {
|
||
mavenCentral()
|
||
}
|
||
|
||
dependencies {
|
||
testImplementation(kotlin("test"))
|
||
|
||
// Ktor 2.x
|
||
implementation("io.ktor:ktor-client-core:2.3.4")
|
||
implementation("io.ktor:ktor-server-netty:2.3.4")
|
||
implementation("io.ktor:ktor-server-core:2.3.4")
|
||
implementation("io.ktor:ktor-server-content-negotiation:2.3.4")
|
||
implementation("io.ktor:ktor-serialization-kotlinx-json:2.3.4")
|
||
|
||
// Логирование
|
||
implementation("ch.qos.logback:logback-classic:1.4.11")
|
||
|
||
// Exposed (ORM)
|
||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0")
|
||
implementation("org.jetbrains.exposed:exposed-core:0.43.0")
|
||
implementation("org.jetbrains.exposed:exposed-dao:0.43.0")
|
||
implementation("org.jetbrains.exposed:exposed-jdbc:0.43.0")
|
||
|
||
// PostgreSQL
|
||
implementation("org.postgresql:postgresql:42.6.0")
|
||
|
||
// Корутинный пул для работы с БД
|
||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")
|
||
}
|
||
|
||
tasks.test {
|
||
useJUnitPlatform()
|
||
} |