-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle.kts
109 lines (90 loc) · 3.83 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val sbVersion = "3.4.0"
group = "shop.itbug"
version = "0.2.3"
description = "梁典典的后台服务"
plugins {
idea
kotlin("jvm") version "2.1.0"
kotlin("plugin.spring") version "2.1.0"
kotlin("plugin.serialization") version "2.1.0"
kotlin("plugin.allopen") version "2.1.0"
id("org.springframework.boot") version "3.4.0"
id("io.spring.dependency-management") version "1.1.5"
id("com.google.osdetector") version "1.7.1"
}
repositories {
mavenCentral()
maven { url = uri("https://repo.spring.io/milestone") }
maven { url = uri("https://repo.maven.apache.org/maven2/") }
maven { url = uri("https://repo.spring.io/snapshot") }
}
dependencies {
implementation("org.springframework.boot:spring-boot-starter-data-jpa:${sbVersion}")
implementation("org.springframework.boot:spring-boot-starter-data-redis:${sbVersion}")
implementation("org.springframework.boot:spring-boot-starter-validation:${sbVersion}")
implementation("org.springframework.boot:spring-boot-starter-security:${sbVersion}")
implementation("org.springframework.boot:spring-boot-starter-cache:${sbVersion}")
implementation("org.springframework.boot:spring-boot-starter-web:${sbVersion}")
implementation("org.springframework.boot:spring-boot-starter-webflux:${sbVersion}")
implementation("org.springframework.boot:spring-boot-starter-websocket:${sbVersion}")
testCompileOnly("org.springframework.boot:spring-boot-starter-test:${sbVersion}")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor:${sbVersion}")
compileOnly("org.springframework.boot:spring-boot-devtools:${sbVersion}")
implementation("io.lettuce:lettuce-core:latest.release")
implementation("org.jetbrains.kotlin:kotlin-stdlib:latest.release")
implementation("com.alibaba.fastjson2:fastjson2:latest.release")
implementation("com.alibaba.fastjson2:fastjson2-kotlin:latest.release")
implementation("com.alibaba.fastjson2:fastjson2-extension-spring6:latest.release")
implementation("cn.hutool:hutool-all:latest.release")
implementation("commons-codec:commons-codec:latest.release")
implementation("com.auth0:java-jwt:latest.release")
implementation("com.sun.mail:javax.mail:latest.release")
implementation("io.minio:minio:latest.release")
implementation("org.springframework.boot:spring-boot-starter-actuator")
runtimeOnly("mysql:mysql-connector-java:latest.release")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-api:latest.release")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:latest.release")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:latest.release")
implementation("org.junit.vintage:junit-vintage-engine:5.10.2")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:latest.release")
implementation("com.github.oshi:oshi-core:6.6.1")
implementation("net.coobird:thumbnailator:0.4.20")
implementation(kotlin("reflect"))
if (osdetector.classifier == "osx-aarch_64") {
runtimeOnly("io.netty:netty-resolver-dns-native-macos:4.1.77.Final:${osdetector.classifier}")
}
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
java.sourceCompatibility = JavaVersion.VERSION_21
}
tasks.withType<KotlinCompile> {
compilerOptions {
incremental = true
jvmTarget = JvmTarget.JVM_21
}
}
tasks.named<Test>("test") {
useJUnitPlatform()
}
java {
sourceCompatibility = JavaVersion.VERSION_21
}
kotlin {
sourceSets.all {
languageSettings {
languageVersion = "2.0"
}
}
}
tasks.bootJar {
archiveFileName.set("dd_service.jar")
}
idea {
module {
isDownloadJavadoc = true
isDownloadSources = true
}
}