-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
86 lines (62 loc) · 2.84 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
buildscript {
ext {
springBootVersion = '2.1.0.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("org.springframework.boot:spring-boot-devtools:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
group = 'com.bababadboy'
version = '1.0.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
// mavenCentral()
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public/'
}
}
jar {
baseName = 'DealerMng'
version = '1.0.0-SNAPSHOT'
}
dependencies {
// 添加Spring Boot启动依赖
implementation('org.springframework.boot:spring-boot-starter-web')
// 添加Spring Data JPA依赖
implementation('org.springframework.boot:spring-boot-starter-data-jpa')
// 添加MySQL连接依赖
implementation('mysql:mysql-connector-java')
// 添加 Spring Security 依赖
implementation('org.springframework.boot:spring-boot-starter-security')
// 添加 Spring Boot Devtools 的依赖 实现热部署
implementation('org.springframework.boot:spring-boot-devtools')
// 添加 Alibaba Fastjson 依赖
compile group: 'com.alibaba', name: 'fastjson', version: '1.2.51'
// 添加swagger2,集成api,https://mvnrepository.com/artifact/io.springfox/springfox-swagger2
compile group: 'io.springfox', name: 'springfox-swagger2', version: '2.9.2'
// 添加swagger-ui,https://mvnrepository.com/artifact/io.springfox/springfox-swagger-ui
compile group: 'io.springfox', name: 'springfox-swagger-ui', version: '2.9.2'
// 添加Spring Boot测试环境依赖
testImplementation('org.springframework.boot:spring-boot-starter-test')
// https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api
compile group: 'javax.xml.bind', name: 'jaxb-api', version: '2.4.0-b180830.0359'
// 添加 Spring Boot Redis starter 依赖
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-data-redis
compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-redis', version: '2.1.7.RELEASE'
// https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-actuator
compile group: 'org.springframework.boot', name: 'spring-boot-starter-actuator', version: '2.1.0.RELEASE'
// https://mvnrepository.com/artifact/com.auth0/java-jwt
compile group: 'com.auth0', name: 'java-jwt', version: '3.4.0'
// https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt
compile group: 'io.jsonwebtoken', name: 'jjwt', version: '0.9.0'
// https://mvnrepository.com/artifact/org.modelmapper/modelmapper
compile group: 'org.modelmapper', name: 'modelmapper', version: '2.3.2'
}