-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
70 lines (57 loc) · 2.02 KB
/
build.gradle
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'org.springframework.boot' version '3.2.5'
id 'io.spring.dependency-management' version '1.1.4'
id 'org.jetbrains.kotlin.jvm' version '1.9.23'
id 'org.jetbrains.kotlin.plugin.spring' version '1.9.23'
}
group = 'com.tiketeer'
version = '0.0.1-SNAPSHOT'
java {
sourceCompatibility = '21'
}
repositories {
mavenCentral()
}
dependencies {
// Default
implementation 'org.springframework.boot:spring-boot-starter-webflux'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'org.springframework.boot:spring-boot-starter-aop'
implementation 'org.jetbrains.kotlin:kotlin-reflect'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-reactor'
implementation 'io.projectreactor.kotlin:reactor-kotlin-extensions'
testImplementation 'io.projectreactor:reactor-test'
// Security
implementation 'org.springframework.boot:spring-boot-starter-security'
testImplementation 'org.springframework.security:spring-security-test'
ext {
JJWT_VERSION = "0.12.5"
}
implementation "io.jsonwebtoken:jjwt-api:${JJWT_VERSION}"
runtimeOnly "io.jsonwebtoken:jjwt-gson:${JJWT_VERSION}"
runtimeOnly "io.jsonwebtoken:jjwt-impl:${JJWT_VERSION}"
// Util
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin'
// DB
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
implementation("it.ozimov:embedded-redis:0.7.2")
implementation 'org.springframework.boot:spring-boot-starter-data-r2dbc'
testImplementation('io.r2dbc:r2dbc-h2')
implementation("io.asyncer:r2dbc-mysql:1.1.0")
// Logger
implementation 'io.github.oshai:kotlin-logging-jvm:5.1.0'
// OBSERVABILITY
implementation 'io.micrometer:micrometer-registry-prometheus:1.11.3'
implementation 'io.opentelemetry:opentelemetry-api'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
}
tasks.withType(KotlinCompile) {
kotlinOptions {
freeCompilerArgs += '-Xjsr305=strict'
jvmTarget = '21'
}
}
tasks.named('test') {
useJUnitPlatform()
}