-
Notifications
You must be signed in to change notification settings - Fork 234
/
build.gradle
82 lines (65 loc) · 2.39 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
group "com.github.izhangzhihao"
version "1.0-SNAPSHOT"
apply plugin: "java"
apply plugin: "war"
sourceCompatibility = 1.8
targetCompatibility = 1.8
def springVersion = "4.3.4.RELEASE"
def HibernateVersion = "5.2.4.Final"
def JacksonVersion = "2.8.4"
repositories {
mavenLocal()
maven { url "http://maven.aliyun.com/nexus/content/groups/public/" }
mavenCentral()
}
dependencies {
compile(
// spring framework
"org.springframework:spring-context:${springVersion}",
"org.springframework:spring-web:${springVersion}",
"org.springframework:spring-webmvc:${springVersion}",
"org.springframework:spring-test:${springVersion}",
"org.springframework:spring-beans:${springVersion}",
"org.springframework:spring-expression:${springVersion}",
"org.springframework:spring-aop:${springVersion}",
"org.springframework:spring-aspects:${springVersion}",
"org.springframework:spring-core:${springVersion}",
"org.springframework:spring-instrument:${springVersion}",
"org.springframework:spring-orm:${springVersion}",
// MySQL
"mysql:mysql-connector-java:6.0.4",
//servlet
"javax.servlet:javax.servlet-api:3.1.0",
//apache
"commons-fileupload:commons-fileupload:1.3.1",
// JSON
"com.fasterxml.jackson.core:jackson-core:${JacksonVersion}",
"com.fasterxml.jackson.core:jackson-databind:${JacksonVersion}",
"com.fasterxml.jackson.core:jackson-annotations:${JacksonVersion}",
//Hibernate
"org.hibernate:hibernate-core:${HibernateVersion}",
"org.hibernate:hibernate-validator:5.2.4.Final",
//C3P0
"com.mchange:c3p0:0.9.5.2",
"org.hibernate:hibernate-c3p0:${HibernateVersion}",
//ehcache
"org.ehcache:ehcache:3.1.2",
"org.hibernate:hibernate-ehcache:${HibernateVersion}",
//jUnit
"junit:junit:4.12",
//@NotNull
"org.jetbrains:annotations:15.0",
)
testCompile(
//jUnit
"junit:junit:4.12",
)
}
task copyJars(type: Copy) {
from configurations.runtime
into "lib" //复制到lib目录
}
//让gradle支持中文
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}