-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
83 lines (68 loc) · 2.62 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "3.3.5"
id("io.spring.dependency-management") version "1.1.4"
kotlin("jvm") version "1.9.21"
kotlin("plugin.spring") version "1.9.21"
kotlin("plugin.serialization") version "2.0.20"
}
group = "smalltalk"
version = "0.0.1-SNAPSHOT"
java {
sourceCompatibility = JavaVersion.VERSION_21
}
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
repositories {
mavenCentral()
}
val coroutinesVersion = "1.8.0-RC2"
val redissonVersion = "3.37.0"
val kotlinLoggingVersion = "6.0.3"
val kotestRunnerVersion = "5.9.1"
val kotestExtensionsVersion = "1.3.0"
val mockkVersion = "4.0.2"
val krossbowVersion = "7.0.0"
val standaloneClientVersion = "2.1.5"
val nettyResolverVersion = "4.1.114.Final:osx-aarch_64"
dependencies {
// Kotlin
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("io.github.oshai:kotlin-logging-jvm:$kotlinLoggingVersion")
// Coroutine
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
// Web
implementation("org.springframework.boot:spring-boot-starter-web")
// WebSocket
implementation("org.springframework.boot:spring-boot-starter-websocket")
implementation("org.hildan.krossbow:krossbow-stomp-kxserialization:$krossbowVersion")
implementation("org.hildan.krossbow:krossbow-stomp-kxserialization-json:$krossbowVersion")
implementation("org.hildan.krossbow:krossbow-websocket-spring:$krossbowVersion")
implementation("org.glassfish.tyrus.bundles:tyrus-standalone-client-jdk:$standaloneClientVersion")
// Redis
implementation("org.springframework.boot:spring-boot-starter-data-redis")
implementation("org.redisson:redisson-spring-boot-starter:$redissonVersion")
runtimeOnly("io.netty:netty-resolver-dns-native-macos:$nettyResolverVersion") // Netty resolver for mac
// Dev tools
developmentOnly("org.springframework.boot:spring-boot-devtools")
// Test
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test")
testImplementation("io.kotest:kotest-runner-junit5:$kotestRunnerVersion")
testImplementation("io.kotest.extensions:kotest-extensions-spring:$kotestExtensionsVersion")
testImplementation("com.ninja-squad:springmockk:$mockkVersion")
testImplementation("org.springframework.boot:spring-boot-testcontainers")
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
jvmTarget = "21"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}