-
Notifications
You must be signed in to change notification settings - Fork 157
/
build.gradle
107 lines (88 loc) · 2.85 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
apply plugin: 'java'
apply plugin: 'scala'
apply plugin: 'eclipse'
apply plugin: 'application'
apply plugin: 'org.springframework.boot'
eclipse {
classpath {
downloadSources = true
downloadJavadoc = false
}
}
buildscript {
ext {
springBootVersion = '1.4.3.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
//spring boot hot deploy plugin
classpath("org.springframework:springloaded:1.2.5.RELEASE")
}
}
ext {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
jar {
baseName = 'spring-boot-scala'
version = '0.1.0'
}
repositories {
mavenCentral()
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
}
dependencies {
//spring boot
compile("org.springframework.boot:spring-boot-starter-web"){
transitive = false
}
compile("org.springframework.boot:spring-boot-starter-actuator")
compile("org.springframework.boot:spring-boot-starter-websocket")
compile("org.springframework.boot:spring-boot-starter-redis")
compile("org.springframework.boot:spring-boot-starter-mail")
//apache
compile("commons-fileupload:commons-fileupload:1.3.2")
//scala
compile "org.scala-lang:scala-library:2.11.7"
compile "org.scala-lang:scala-compiler:2.11.7"
compile "org.scala-lang:scala-reflect:2.11.7"
//mysql driver
compile ("mysql:mysql-connector-java:5.1.38")
//alibaba druid
compile 'com.alibaba:druid:1.0.26'
//mybatis
compile ("org.mybatis.spring.boot:mybatis-spring-boot-starter:1.1.1")
compile ("com.github.pagehelper:pagehelper:4.1.0")
//alibaba fastjson
compile 'com.alibaba:fastjson:1.2.12'
//Gson
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.0'
//spring security
compile ("org.springframework.security:spring-security-core:4.1.3.RELEASE")
//swagger
compile ("io.springfox:springfox-swagger2:2.2.2")
compile ("io.springfox:springfox-swagger-ui:2.2.2")
//Tomcat
compile ("org.apache.tomcat.embed:tomcat-embed-jasper:+")
compile ("javax.servlet.jsp.jstl:javax.servlet.jsp.jstl-api:1.2.1")
compile ("org.apache.taglibs:taglibs-standard-impl:1.2.5")
//shiro
compile ("org.apache.shiro:shiro-core:1.2.5")
compile ("org.apache.shiro:shiro-web:1.2.5")
compile ("org.apache.shiro:shiro-ehcache:1.2.5")
compile ("org.apache.shiro:shiro-spring:1.2.5")
//test
testCompile("org.springframework.boot:spring-boot-starter-test")
testCompile("junit:junit:4.12")
}
task wrapper(type: Wrapper) {
gradleVersion = '2.9'
}
bootRepackage.enabled = false
run {
main='com.silence.Application'
}