-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
62 lines (52 loc) · 2.37 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
62
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val kotlinVersion = "2.0.21"
val ktorVersion = "3.0.0"
val logbackVersion = "1.5.11"
val kotlinxDatetimeVersion = "0.6.1"
val skullgameCommonVersion = "1.0.5-SNAPSHOT"
plugins {
kotlin("jvm") version "2.0.21"
kotlin("plugin.serialization") version "2.0.21"
id("io.ktor.plugin") version "3.0.0"
id("io.gitlab.arturbosch.detekt") version "1.23.7"
}
group = "com.rtarita"
version = "1.0.0-SNAPSHOT"
application {
mainClass.set("com.rtarita.skull.server.ApplicationKt")
}
repositories {
mavenCentral()
mavenLocal() // needed for 'com.rtarita.skull:skullgame-common' dependency
}
dependencies {
implementation("io.ktor:ktor-server-core-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-auth-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-auth-jwt-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-auto-head-response-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-host-common-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-status-pages-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-cors-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-default-headers-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-forwarded-header-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-call-logging-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-content-negotiation-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-html-builder-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-cio-jvm:$ktorVersion")
implementation("io.ktor:ktor-server-websockets:$ktorVersion")
implementation("io.ktor:ktor-serialization-kotlinx-json-jvm:$ktorVersion")
implementation("ch.qos.logback:logback-classic:$logbackVersion")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:$kotlinxDatetimeVersion")
// in order to use this dependency, the skullgame-common repository needs to be checked out first and installed into the maven local repository.
// to do so, invoke 'gradlew(.bat) publishToMavenLocal' in the skullgame-common project
implementation("com.rtarita.skull:skullgame-common:$skullgameCommonVersion")
}
tasks.withType<KotlinCompile>().all {
compilerOptions {
jvmTarget = JvmTarget.JVM_17
}
}
detekt {
basePath = rootDir.toString()
}