mirror of https://github.com/usbharu/Hideout.git
53 lines
2.2 KiB
Plaintext
53 lines
2.2 KiB
Plaintext
|
val ktor_version: String by project
|
||
|
val kotlin_version: String by project
|
||
|
val logback_version: String by project
|
||
|
val exposed_version: String by project
|
||
|
val h2_version: String by project
|
||
|
val koin_version: String by project
|
||
|
|
||
|
plugins {
|
||
|
kotlin("jvm") version "1.8.10"
|
||
|
id("io.ktor.plugin") version "2.2.4"
|
||
|
// id("org.jetbrains.kotlin.plugin.serialization") version "1.8.10"
|
||
|
}
|
||
|
|
||
|
group = "dev.usbharu"
|
||
|
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:$ktor_version")
|
||
|
implementation("io.ktor:ktor-server-auth-jvm:$ktor_version")
|
||
|
implementation("io.ktor:ktor-server-sessions-jvm:$ktor_version")
|
||
|
implementation("io.ktor:ktor-server-auto-head-response-jvm:$ktor_version")
|
||
|
implementation("io.ktor:ktor-server-cors-jvm:$ktor_version")
|
||
|
implementation("io.ktor:ktor-server-default-headers-jvm:$ktor_version")
|
||
|
implementation("io.ktor:ktor-server-forwarded-header-jvm:$ktor_version")
|
||
|
implementation("io.ktor:ktor-server-call-logging-jvm:$ktor_version")
|
||
|
implementation("io.ktor:ktor-server-content-negotiation-jvm:$ktor_version")
|
||
|
implementation("io.ktor:ktor-serialization-jackson:$ktor_version")
|
||
|
implementation("org.jetbrains.exposed:exposed-core:$exposed_version")
|
||
|
implementation("org.jetbrains.exposed:exposed-jdbc:$exposed_version")
|
||
|
implementation("com.h2database:h2:$h2_version")
|
||
|
implementation("org.xerial:sqlite-jdbc:3.40.1.0")
|
||
|
implementation("io.ktor:ktor-server-websockets-jvm:$ktor_version")
|
||
|
implementation("io.ktor:ktor-server-netty-jvm:$ktor_version")
|
||
|
implementation("ch.qos.logback:logback-classic:$logback_version")
|
||
|
|
||
|
implementation("io.insert-koin:koin-core:$koin_version")
|
||
|
implementation("io.insert-koin:koin-ktor:$koin_version")
|
||
|
implementation("io.insert-koin:koin-logger-slf4j:$koin_version")
|
||
|
|
||
|
testImplementation("io.ktor:ktor-server-tests-jvm:$ktor_version")
|
||
|
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
|
||
|
}
|