Initial Ktor backend skeleton with ProtocolMessage DTO, REST and WebSocket
This commit is contained in:
29
backend/build.gradle.kts
Normal file
29
backend/build.gradle.kts
Normal file
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/env kotlin
|
||||
|
||||
plugins {
|
||||
kotlin("jvm") version "1.9.22"
|
||||
kotlin("plugin.serialization") version "1.9.22"
|
||||
application
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("io.ktor:ktor-server-core:2.3.7")
|
||||
implementation("io.ktor:ktor-server-netty:2.3.7")
|
||||
implementation("io.ktor:ktor-server-content-negotiation:2.3.7")
|
||||
implementation("io.ktor:ktor-serialization-kotlinx-json:2.3.7")
|
||||
implementation("io.ktor:ktor-server-websockets:2.3.7")
|
||||
|
||||
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.2")
|
||||
|
||||
implementation("ch.qos.logback:logback-classic:1.4.14")
|
||||
|
||||
testImplementation(kotlin("test"))
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass.set("org.pavloveugene.iot.backend.ApplicationKt")
|
||||
}
|
||||
Reference in New Issue
Block a user