This repository was archived by the owner on Jan 12, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
74 lines (62 loc) · 2.42 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
74 lines (62 loc) · 2.42 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
plugins {
`java-library`
kotlin("jvm")
kotlin("plugin.lombok") version "2.0.21"
id("org.springframework.boot") version ("3.4.3")
id("io.spring.dependency-management") version ("1.1.4")
id("org.jetbrains.kotlin.plugin.spring") version ("2.0.20")
id("io.freefair.lombok") version "8.10.2"
}
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
repositories {
mavenLocal()
maven("https://maven.aliyun.com/repository/public")
mavenCentral()
}
val versions = mapOf(
"SpringBoot" to "3.4.3",
"HuaweiCloud" to "3.1.136",
"lombok" to "1.18.34"
)
dependencies {
implementation("org.springframework.boot:spring-boot-starter:${versions["SpringBoot"]}")
implementation("org.springframework.boot:spring-boot-starter-data-jpa:${versions["SpringBoot"]}")
implementation("org.springframework.boot:spring-boot-starter-data-redis:${versions["SpringBoot"]}")
implementation("org.springframework.boot:spring-boot-starter-web:${versions["SpringBoot"]}")
implementation("org.springframework.boot:spring-boot-starter-mail:${versions["SpringBoot"]}")
implementation("org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:2.6.8")
implementation("org.springframework:spring-orm:6.1.13") {
exclude(group = "commons-logging", module = "commons-logging")
}
implementation("org.slf4j:jcl-over-slf4j:2.0.16")
implementation("com.mysql:mysql-connector-j:9.1.0")
implementation("commons-codec:commons-codec:1.16.0")
implementation("com.alibaba.fastjson2:fastjson2:2.0.53")
implementation("com.squareup.okhttp3:okhttp:4.12.0")
testImplementation("org.springframework.boot:spring-boot-starter-test")
implementation(kotlin("stdlib"))
implementation(kotlin("reflect"))
compileOnly("org.projectlombok:lombok:${versions["lombok"]}")
annotationProcessor("org.projectlombok:lombok:${versions["lombok"]}")
testCompileOnly("org.projectlombok:lombok:${versions["lombok"]}")
testAnnotationProcessor("org.projectlombok:lombok:${versions["lombok"]}")
}
group = "cn.daiyangcheng"
version = "2.2.0-FINAL-MINIMAL"
description = "The LoCyanFrp API V2 powered by Spring Boot 3."
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks.withType<Javadoc> {
options.encoding = "UTF-8"
}
tasks.withType<Test> {
useJUnitPlatform()
enabled = true
}
kotlin {
jvmToolchain(21)
}