-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy pathbuild.gradle
55 lines (50 loc) · 1.83 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
buildscript {
ext {
springBootVersion = '1.5.10.RELEASE'
}
repositories {
maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse-wtp'
apply plugin: 'org.springframework.boot'
apply plugin: 'war'
group = 'com.zmh'
version = '0.0.1'
sourceCompatibility = 1.8
repositories {
maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}
}
configurations {
providedRuntime
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-web')
//数据库相关
compile('mysql:mysql-connector-java')
compile('org.mybatis.spring.boot:mybatis-spring-boot-starter:1.3.1')
//友好的HTML规范 搭配spring.thymeleaf.mode=LEGACYHTML5
compile('org.springframework.boot:spring-boot-starter-thymeleaf')
compile('net.sourceforge.nekohtml:nekohtml:1.9.22')
//热部署 搭配spring.thymeleaf.cache=false
compile('org.springframework.boot:spring-boot-devtools')
//SpringBoot内置的Redis
compile('org.springframework.boot:spring-boot-starter-data-redis')
//内置tomcat 仅开发测试用
//runtime('org.springframework.boot:spring-boot-starter-tomcat')
//spring-boot-admin 图形化管理页面
compile('de.codecentric:spring-boot-admin-server:1.5.7')
compile('de.codecentric:spring-boot-admin-server-ui:1.5.7')
compile('de.codecentric:spring-boot-admin-starter-client:1.5.7')
//pagehelper
compile group: 'com.github.pagehelper', name: 'pagehelper-spring-boot-starter', version: '1.2.3'
//使用的是shiro-spring 而非shiro
compile('org.apache.shiro:shiro-spring:1.4.0')
compile('com.github.theborakompanioni:thymeleaf-extras-shiro:1.2.1')
//测试
testCompile('org.springframework.boot:spring-boot-starter-test')
}