forked from gradle/continuous-delivery-jump-start
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
45 lines (37 loc) · 1.17 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-tomcat-plugin:2.2.2'
}
}
apply plugin: 'war'
apply plugin: 'idea'
apply plugin: 'com.bmuschko.tomcat'
apply from: "$rootDir/gradle/unit-test.gradle"
apply from: "$rootDir/gradle/integeration-test.gradle"
group = 'org.gradle.training'
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
mavenCentral()
}
dependencies {
compile 'ch.qos.logback:logback-classic:1.1.2'
compile 'org.springframework:spring-webmvc:4.1.1.RELEASE'
compile 'org.apache.httpcomponents:httpclient:4.3.6'
compile 'commons-io:commons-io:2.4'
compile 'com.googlecode.json-simple:json-simple:1.1.1'
providedCompile 'javax.servlet:servlet-api:2.5'
runtime 'jstl:jstl:1.2'
testCompile 'junit:junit:4.11'
testCompile 'org.mockito:mockito-all:1.10.8'
def tomcatVersion = '7.0.62'
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}"
}
tomcat {
contextPath = 'sample-app'
}