-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
117 lines (99 loc) · 5.09 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
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
plugins {
id 'java'
id 'org.springframework.boot' version '3.1.1'
id 'io.spring.dependency-management' version '1.1.0'
}
group = 'com.wbxnl.blog'
version = '2.0'
java {
sourceCompatibility = '17'
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
}
//repositories {
// mavenCentral()
//}
repositories {
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'https://maven.aliyun.com/nexus/content/repositories/jcenter' }
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-amqp'
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-aop
implementation 'org.springframework.boot:spring-boot-starter-aop'
// 邮件服务
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-mail
implementation 'org.springframework.boot:spring-boot-starter-mail'
// Caused by: java.lang.RuntimeException: Provider for jakarta.activation.spi.MimeTypeRegistryProvider cannot be found
// implementation 'com.sun.mail:jakarta.mail:2.0.1'
implementation 'com.sun.activation:jakarta.activation:2.0.1'
// 配置提示生成
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-configuration-processor
implementation 'org.springframework.boot:spring-boot-configuration-processor'
// implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:3.0.2'
// mybatis增强
// https://mvnrepository.com/artifact/com.baomidou/mybatis-plus-boot-starter
implementation 'com.baomidou:mybatis-plus-boot-starter:3.5.3.2'
// 德鲁伊数据库连接池
// https://mvnrepository.com/artifact/com.alibaba/druid-spring-boot-starter
implementation 'com.alibaba:druid-spring-boot-starter:1.2.18'
// jdbc
// https://mvnrepository.com/artifact/mysql/mysql-connector-java
implementation 'mysql:mysql-connector-java:8.0.28'
// token生成
// java-jwt是Java语言中推荐的JWT实现库
// https://mvnrepository.com/artifact/com.auth0/java-jwt
implementation 'com.auth0:java-jwt:4.4.0'
// 浏览器解析工具
// https://mvnrepository.com/artifact/eu.bitwalker/UserAgentUtils
implementation 'eu.bitwalker:UserAgentUtils:1.21'
// 阿里云oss
// 不知道有没有用
// https://mvnrepository.com/artifact/com.alibaba.cloud/aliyun-oss-spring-boot-starter
// implementation 'com.alibaba.cloud:aliyun-oss-spring-boot-starter:1.0.0'
// https://mvnrepository.com/artifact/com.aliyun.oss/aliyun-sdk-oss
implementation 'com.aliyun.oss:aliyun-sdk-oss:3.17.1'
// 敏感词检测工具
// https://mvnrepository.com/artifact/com.github.houbb/sensitive-word
implementation 'com.github.houbb:sensitive-word:0.8.0'
// 文档工具
// https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-starter-webmvc-ui
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.1.0'
// xTODO springboot3.0+会报错,该工具暂时没有适配3.0貌似是这样 =====》已修复,选用springdoc作为文档工具
// https://mvnrepository.com/artifact/com.github.xiaoymin/knife4j-spring-boot-starte
// implementation 'com.github.xiaoymin:knife4j-spring-boot-starter:3.0.3'
// https://mvnrepository.com/artifact/io.swagger.core.v3/swagger-annotations
// implementation 'io.swagger.core.v3:swagger-annotations:2.2.15'
// https://mvnrepository.com/artifact/io.swagger.core.v3/swagger-jaxrs2
// implementation 'io.swagger.core.v3:swagger-jaxrs2:2.2.15'
// 项目热部署
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-devtools
implementation 'org.springframework.boot:spring-boot-devtools:3.1.1'
// 转为fastjson2
// https://mvnrepository.com/artifact/com.alibaba/fastjson
// implementation 'com.alibaba:fastjson:2.0.35'// https://mvnrepository.com/artifact/com.alibaba.fastjson2/fastjson2
implementation 'com.alibaba.fastjson2:fastjson2:2.0.39'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
// TODO 暂不使用docker
// developmentOnly 'org.springframework.boot:spring-boot-docker-compose'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter-test:3.0.2'
// testImplementation 'org.springframework.amqp:spring-rabbit-test'
testImplementation 'org.springframework.security:spring-security-test'
// 模板引擎
// 用来设计邮件模板
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-thymeleaf
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf:3.1.2'
}
tasks.named('test') {
useJUnitPlatform()
}