-
Notifications
You must be signed in to change notification settings - Fork 160
/
build.gradle
92 lines (74 loc) · 2.91 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
buildscript {
ext {
springBootVersion = '1.5.8.RELEASE'
}
repositories {
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public/'
}
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
//apply plugin: 'war'
group = 'com.linkinstars'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public/'
}
mavenCentral()
}
bootRun {
//开启页面热加载功能
addResources = true
}
dependencies {
//spring相关
compile('org.springframework.boot:spring-boot-starter-web')
compile('org.springframework.boot:spring-boot-starter-aop')
compile group: 'org.springframework', name: 'spring-tx', version: '4.3.12.RELEASE'
compile group: 'org.springframework', name: 'spring-jdbc', version: '4.3.12.RELEASE'
compile "org.springframework.boot:spring-boot-configuration-processor"
testCompile('org.springframework.boot:spring-boot-starter-test')
// 热部署相关
// compile("org.springframework.boot:spring-boot-devtools")
//数据库相关
compile group: 'mysql', name: 'mysql-connector-java', version: '6.0.6'
compile group: 'com.alibaba', name: 'druid', version: '1.0.19'
//mybatis相关
compile group: 'org.mybatis', name: 'mybatis', version: '3.4.5'
compile group: 'org.mybatis', name: 'mybatis-spring', version: '1.3.1'
//web前端模块相关
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
//分页插件
compile group: 'com.github.pagehelper', name: 'pagehelper-spring-boot-starter', version: '1.2.3'
//数据校验插件
compile (group: 'com.baidu.unbiz', name: 'fluent-validator-jsr303', version: '1.0.9'){
exclude module: 'slf4j-log4j12'
}
//redis相关配置
compile group: 'org.springframework.session', name: 'spring-session-data-redis', version: '1.3.1.RELEASE'
//用于redis序列化用户
compile group: 'com.esotericsoftware', name: 'kryo', version: '4.0.0'
//让thymeleaf解析标签没有闭合时通过
compile group: 'net.sourceforge.nekohtml', name: 'nekohtml', version: '1.9.22'
//谷歌官方Java项目广泛依赖的核心库
compile group: 'com.google.guava', name: 'guava', version: '24.0-jre'
//log4jdbc
compile group: 'org.bgee.log4jdbc-log4j2', name: 'log4jdbc-log4j2-jdbc4.1', version: '1.16'
//protostuff序列化依赖
compile group: 'io.protostuff', name: 'protostuff-runtime', version: '1.6.0'
compile group: 'io.protostuff', name: 'protostuff-core', version: '1.6.0'
//文件上传
compile group: 'commons-fileupload', name: 'commons-fileupload', version: '1.3.1'
compile group: 'commons-io', name: 'commons-io', version: '2.4'
}
//https://docs.spring.io/spring-boot/docs/1.3.8.RELEASE/reference/html/configuration-metadata.html#configuration-metadata-annotation-processor
compileJava.dependsOn(processResources)