-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
61 lines (50 loc) · 1.8 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import org.jetbrains.kotlin.gradle.dsl.KotlinProjectExtension
import org.jetbrains.kotlin.gradle.dsl.KotlinTopLevelExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version libs.versions.kotlin.get()
kotlin("plugin.serialization") version libs.versions.kotlin.get()
alias(libs.plugins.ktor)
}
group = "de.lanrena"
version = "1.0-SNAPSHOT"
application {
mainClass.set("io.ktor.server.cio.EngineMain")
}
dependencies {
implementation(libs.bundles.ktor)
implementation(libs.bundles.logging)
implementation(libs.bundles.koin)
implementation(libs.ktor.html)
// frontend
implementation("org.webjars:sockjs-client:1.5.1")
implementation("org.webjars:stomp-websocket:2.3.4")
implementation("org.webjars:knockout:3.5.1")
// backend
implementation("org.webjars:jquery:3.6.0")
implementation("org.webjars:tether:1.4.0")
implementation("org.webjars:bootstrap:5.1.1")
implementation("org.apache.commons:commons-compress:1.21")
implementation("com.googlecode.json-simple:json-simple:1.1.1")
testImplementation(platform("org.junit:junit-bom:${libs.versions.junit.get()}"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
languageVersion = "2.0"
freeCompilerArgs = freeCompilerArgs + "-Xcontext-receivers"
}
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
extensions.configure<KotlinTopLevelExtension> {
jvmToolchain(11)
}
extensions.configure<KotlinProjectExtension> {
sourceSets.all {
languageSettings.optIn("kotlin.ExperimentalStdlibApi")
languageSettings.optIn("kotlin.ExperimentalUnsignedTypes")
languageSettings.optIn("kotlinx.serialization.ExperimentalSerializationApi")
}
}