-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
37 lines (30 loc) · 1.04 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
plugins {
// Apply the org.jetbrains.kotlin.jvm Plugin to add support for Kotlin.
id("org.jetbrains.kotlin.jvm") version "1.8.0"
// Apply the application plugin to add support for building a CLI application in Java.
application
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
dependencies {
// Ktor server dependencies
implementation("io.ktor:ktor-server-netty:2.0.0")
implementation("io.ktor:ktor-server-core:2.0.0")
implementation("io.ktor:ktor-server-host-common:2.0.0")
implementation("io.ktor:ktor-server-call-logging:2.0.0")
implementation("io.ktor:ktor-server-content-negotiation:2.0.0")
implementation("io.ktor:ktor-serialization-kotlinx-json:2.0.0")
// Logging for Ktor
implementation("ch.qos.logback:logback-classic:1.5.14")
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(17)) // Adjust to your Java version
}
}
application {
// Define the main class for the application.
mainClass.set("org.example.ApplicationKt")
}