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
110
111
112
113
114
115
116
117
118
119
120
| // 定义项目构建所需的仓库和依赖项
// 定义项目构建所需的仓库和依赖项
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath('org.springframework.boot:spring-boot-gradle-plugin:3.0.4')
}
}
plugins {
id 'java'
id 'groovy'
id 'java-library'
id 'org.springframework.boot' version '3.0.4'
id 'io.spring.dependency-management' version '1.1.0'
}
allprojects{
group = 'com.weasley'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
repositories {
mavenCentral()
}
dependencyManagement {
imports {
mavenBom 'org.springframework.boot:spring-boot-dependencies:3.0.4'
}
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'groovy'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
dependencies {
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
// devtools
compileOnly 'org.springframework.boot:spring-boot-devtools'
// lombok
compileOnly 'org.projectlombok:lombok:1.18.26'
annotationProcessor 'org.projectlombok:lombok:1.18.26'
// spring-boot-configuration-processor
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
// spring-boot-starter-validation
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-validation', version: '3.0.4'
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-actuator
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version: '3.0.5'
// mapstruct
implementation 'org.mapstruct:mapstruct:1.5.3.Final'
annotationProcessor 'org.mapstruct:mapstruct-processor:1.5.3.Final'
// knife4j
implementation group: 'com.github.xiaoymin', name: 'knife4j-openapi3-jakarta-spring-boot-starter', version: '4.1.0'
// mybatis plus
implementation group: 'com.baomidou', name: 'mybatis-plus-boot-starter', version: '3.5.3.1'
implementation group: 'com.baomidou', name: 'mybatis-plus-generator', version: '3.5.3.1'
implementation group: 'org.freemarker', name: 'freemarker', version: '2.3.31'
implementation group: 'mysql', name: 'mysql-connector-java', version: '8.0.32'
// spock
testImplementation group: 'org.spockframework', name: 'spock-core', version: '2.3-groovy-4.0'
testImplementation group: 'org.spockframework', name: 'spock-spring', version: '2.3-groovy-4.0'
// h2
testImplementation group: 'com.h2database', name: 'h2', version: '2.1.214'
// embedded-redis
testImplementation (group: 'it.ozimov', name: 'embedded-redis', version: '0.7.3' ) {
exclude group: 'org.slf4j', module: 'slf4j-simple'
}
// redission
implementation group: 'org.redisson', name: 'redisson-spring-boot-starter', version: '3.20.0'
// https://mvnrepository.com/artifact/com.github.ben-manes.caffeine/caffeine
implementation group: 'com.github.ben-manes.caffeine', name: 'caffeine', version: '3.1.5'
// hutool-core
implementation group: 'cn.hutool', name: 'hutool-core', version: '5.8.15'
implementation group: 'cn.hutool', name: 'hutool-extra', version: '5.8.16'
// minio
implementation group: 'io.minio', name:'minio', version: '8.4.3'
// vavr
implementation group: 'io.vavr', name: 'vavr', version: '0.10.4'
implementation group: 'org.apache.skywalking', name: 'apm-toolkit-logback-1.x', version: '8.15.0'
// https://mvnrepository.com/artifact/com.jayway.jsonpath/json-path
implementation group: 'com.jayway.jsonpath', name: 'json-path', version: '2.8.0'
}
tasks.named('test') {
useJUnitPlatform()
}
}
|