-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
94 lines (75 loc) · 2.59 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
apply plugin: "war"
apply plugin: "idea"
apply plugin: "jetty"
apply plugin: "eclipse"
compileJava {
sourceCompatibility = 1.6
targetCompatibility = 1.6
}
jettyRun {
httpPort = 9898
}
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
repositories {
maven {
url "http://maven.oschina.net/content/groups/public/"
}
}
configurations {
provided
}
sourceSets {
main.compileClasspath += configurations.provided
test.compileClasspath += configurations.provided
test.runtimeClasspath += configurations.provided
}
String springVersion = "4.1.1.RELEASE"
String hibernateVersion = "4.3.6.Final"
String slf4jVersion = "1.7.7"
dependencies {
provided(
"javax.servlet:servlet-api:2.5",
"javax.servlet.jsp:jsp-api:2.1"
)
//mail
//spring
compile("org.springframework:spring-context:" + springVersion)
compile("org.springframework:spring-context-support:" + springVersion)
compile("org.springframework:spring-aop:" + springVersion)
compile("org.springframework:spring-beans:" + springVersion)
compile("org.springframework:spring-core:" + springVersion)
compile("org.springframework:spring-expression:" + springVersion)
compile("org.springframework:spring-webmvc:" + springVersion)
//aspects
compile "org.aspectj:aspectjrt:1.7.3"
compile "org.aspectj:aspectjweaver:1.7.3"
//logging
compile("log4j:log4j:1.2.17")
compile("org.slf4j:slf4j-log4j12:" + slf4jVersion)
//json
compile "com.fasterxml.jackson.core:jackson-databind:2.4.3"
compile "org.codehaus.jackson:jackson-mapper-asl:1.9.13"
compile "org.codehaus.jackson:jackson-core-asl:1.9.13"
//db access
compile "org.springframework:spring-jdbc:" + springVersion
compile "org.springframework:spring-orm:" + springVersion
compile "org.springframework.data:spring-data-jpa:1.7.0.RELEASE"
compile "org.hibernate:hibernate-validator:4.3.1.Final"
compile "org.hibernate:hibernate-entitymanager:" + hibernateVersion
compile "org.hibernate:hibernate-core:" + hibernateVersion
compile "org.hibernate:hibernate-ehcache:4.2.7.Final"
compile "mysql:mysql-connector-java:5.1.30"
compile "com.mchange:c3p0:0.9.5-pre8"
//other
compile "com.google.guava:guava:18.0"
compile "joda-time:joda-time:2.5"
compile "org.jadira.usertype:usertype.jodatime:2.0.1"
//testing
testCompile "junit:junit:4.11"
testCompile "org.mockito:mockito-all:1.10.8"
testCompile "org.hamcrest:hamcrest-core:1.3"
testCompile "org.springframework:spring-test:" + springVersion
}
war {
baseName = 'pebms'
}