todo/build.gradle.kts
2026-02-05 01:12:17 +01:00

47 lines
1.6 KiB
Kotlin

val exposed_version: String by project
val h2_version: String by project
val kotlin_version: String by project
val logback_version: String by project
val postgres_version: String by project
val flyway_version: String by project
plugins {
kotlin("jvm") version "2.3.0"
id("io.ktor.plugin") version "3.4.0"
id("org.jetbrains.kotlin.plugin.serialization") version "2.3.0"
}
group = "cz.flegr"
version = "0.0.1"
application {
mainClass = "io.ktor.server.netty.EngineMain"
}
kotlin {
jvmToolchain(21)
}
buildscript {
val flyway_version: String by project
dependencies {
classpath("org.flywaydb:flyway-database-postgresql:$flyway_version")
}
}
dependencies {
implementation("io.ktor:ktor-server-core")
implementation("io.ktor:ktor-server-content-negotiation")
implementation("io.ktor:ktor-serialization-kotlinx-json")
implementation("org.jetbrains.exposed:exposed-core:$exposed_version")
implementation("org.jetbrains.exposed:exposed-jdbc:$exposed_version")
implementation("org.postgresql:postgresql:$postgres_version")
implementation("io.ktor:ktor-server-call-logging")
implementation("io.ktor:ktor-server-netty")
implementation("org.flywaydb:flyway-core:$flyway_version")
implementation("org.flywaydb:flyway-database-postgresql:$flyway_version")
implementation("ch.qos.logback:logback-classic:$logback_version")
implementation("io.ktor:ktor-server-config-yaml")
testImplementation("io.ktor:ktor-server-test-host")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
}