-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
78 lines (62 loc) · 2.17 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
78 lines (62 loc) · 2.17 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// Add shared version variables
val kotlinVersion = "2.2.20"
val kotestVersion = "5.8.0"
plugins {
kotlin("jvm")
kotlin("plugin.serialization")
// Spring
id("org.springframework.boot")
id("io.spring.dependency-management")
kotlin("plugin.spring")
}
group = "io.holonaut"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation(project(":game-model"))
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0")
implementation("org.jetbrains.kotlinx:kotlinx-collections-immutable:0.4.0")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0")
implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlinVersion")
// JWT parsing and validation
implementation("com.auth0:java-jwt:4.4.0")
// Spring Boot
implementation("org.springframework.boot:spring-boot-starter-web:3.5.6")
developmentOnly("org.springframework.boot:spring-boot-devtools")
testImplementation(kotlin("test"))
testImplementation("io.kotest:kotest-runner-junit5:$kotestVersion")
testImplementation("io.kotest:kotest-assertions-core:$kotestVersion")
testImplementation(project(":game-model"))
runtimeOnly("com.h2database:h2")
}
tasks.test {
useJUnitPlatform()
testLogging {
events("passed", "skipped", "failed")
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
showStandardStreams = true
}
}
tasks.register<JavaExec>("generateJsDoc") {
group = "documentation"
description = "Generates JSDoc typedef file from Kotlin types"
classpath = sourceSets["main"].runtimeClasspath
mainClass.set("tools.GenerateJsDocKt")
// Updated path after moving game-model into modules/
args("--file", "modules/game-model/src/commonMain/kotlin/game/CompactTypes.kt")
args("--out", "frontend/generated/types.js")
}
tasks.register<JavaExec>("runSpringServer2") {
group = "application"
description = "Runs the Spring Boot server2 application"
classpath = sourceSets["main"].runtimeClasspath
mainClass.set("server2.SpringAppKt")
}
springBoot {
mainClass.set("server2.SpringAppKt")
}
kotlin {
jvmToolchain(21)
}