todo/build.gradle.kts
pavel 57e84c35b5
All checks were successful
/ upload (release) Successful in 7s
pipeline
2026-02-06 01:22:34 +01:00

56 lines
1.7 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")
}
}
tasks {
shadowJar {
mergeServiceFiles {
include("META-INF/services/**")
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}
}
}
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")
}