51 lines
1.7 KiB
Plaintext
51 lines
1.7 KiB
Plaintext
|
|
||
|
val kotlin_version: String by project
|
||
|
val logback_version: String by project
|
||
|
val exposed_version: String by project
|
||
|
val h2_version: String by project
|
||
|
|
||
|
plugins {
|
||
|
kotlin("jvm") version "2.0.21"
|
||
|
id("io.ktor.plugin") version "3.0.0"
|
||
|
id("org.jetbrains.kotlin.plugin.serialization") version "2.0.21"
|
||
|
}
|
||
|
|
||
|
group = "com.example"
|
||
|
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("io.ktor:ktor-server-core-jvm")
|
||
|
implementation("io.ktor:ktor-serialization-kotlinx-json-jvm")
|
||
|
implementation("io.ktor:ktor-server-content-negotiation-jvm")
|
||
|
|
||
|
implementation("org.jetbrains.exposed:exposed-core:$exposed_version")
|
||
|
implementation("org.jetbrains.exposed:exposed-jdbc:$exposed_version")
|
||
|
implementation ("org.jetbrains.exposed:exposed-dao:$exposed_version")
|
||
|
implementation("org.jetbrains.exposed:exposed-kotlin-datetime:$exposed_version")
|
||
|
|
||
|
|
||
|
implementation("org.postgresql:postgresql:42.7.4")
|
||
|
|
||
|
implementation("io.insert-koin:koin-ktor:4.0.0")
|
||
|
|
||
|
implementation("io.ktor:ktor-server-swagger-jvm")
|
||
|
implementation("io.ktor:ktor-server-auth-jvm")
|
||
|
implementation("io.ktor:ktor-server-auth-jwt-jvm")
|
||
|
implementation("io.ktor:ktor-server-netty-jvm")
|
||
|
implementation("ch.qos.logback:logback-classic:$logback_version")
|
||
|
implementation("io.ktor:ktor-server-config-yaml")
|
||
|
testImplementation("io.ktor:ktor-server-test-host-jvm")
|
||
|
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
|
||
|
}
|