-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
65 lines (51 loc) · 2.06 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
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'com.bmuschko.tomcat'
repositories {
maven {
url 'http://maven.aliyun.com/nexus/content/groups/public'
}
jcenter()
}
dependencies {
compile 'org.slf4j:slf4j-api:1.7.7'
testCompile 'junit:junit:4.12'
compile 'log4j:log4j:1.2.8'
compile 'org.slf4j:slf4j-log4j12:1.7.7'
compile 'org.springframework:spring-core:4.0.2.RELEASE'
compile 'org.springframework:spring-web:4.0.2.RELEASE'
compile 'org.springframework:spring-oxm:4.0.2.RELEASE'
compile 'org.springframework:spring-tx:4.0.2.RELEASE'
compile 'org.springframework:spring-jdbc:4.0.2.RELEASE'
compile 'org.springframework:spring-webmvc:4.0.2.RELEASE'
compile 'org.springframework:spring-aop:4.0.2.RELEASE'
compile 'org.springframework:spring-context-support:4.0.2.RELEASE'
compile 'org.springframework:spring-test:4.0.2.RELEASE'
compile 'org.mybatis:mybatis:3.2.6'//mybatis核心包
compile 'org.mybatis:mybatis-spring:1.2.2'//mybatis/spring包
compile 'javax:javaee-api:7.0'//导入java ee jar 包
compile 'mysql:mysql-connector-java:5.1.30'// 导入Mysql数据库链接jar包
compile 'commons-dbcp:commons-dbcp:1.2.2'//导入dbcp的jar包,用来在applicationContext.xml中配置数据库
compile 'jstl:jstl:1.2'//JSTL标签类
compile 'com.alibaba:fastjson:1.1.41'//
compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.13'//映入JSON
compile 'commons-fileupload:commons-fileupload:1.3.1'//上传组件包
compile 'commons-io:commons-io:2.4'
compile 'commons-codec:commons-codec:1.9'
}
// TomcatServer
dependencies {
def tomcatVersion = '7.0.73'
tomcat "org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}",
"org.apache.tomcat.embed:tomcat-embed-logging-juli:${tomcatVersion}",
"org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}"
}
// Build script
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-tomcat-plugin:2.2.2'
}
}