-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
50 lines (40 loc) · 1.14 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
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'tomcat'
sourceCompatibility = 1.7
version = '1.0'
repositories {
mavenCentral()
}
// change this by n*100 to offset the ports of the tomcat server
// don't forget to change the port accordingly in config.yml too!
def portOffset = 0
tomcatRun {
httpPort = 9180 + portOffset
ajpPort = 9109 + portOffset
stopPort = 9181 + portOffset
contextPath = '/'
}
tomcatStop {
stopPort = 9181 + portOffset
stopKey = 'stopKey'
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.gradle.api.plugins:gradle-tomcat-plugin:1.0'
}
}
dependencies {
testCompile 'junit:junit:4.11'
compile 'com.google.code.gson:gson:2.2.4'
def tomcatVersion = '7.0.11'
providedCompile "org.apache.tomcat:tomcat-servlet-api:${tomcatVersion}"
tomcat "org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}",
"org.apache.tomcat.embed:tomcat-embed-logging-juli:${tomcatVersion}"
tomcat("org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}") {
exclude group: 'org.eclipse.jdt.core.compiler', module: 'ecj'
}
}