forked from kzsolti/poker-player-groovy
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
56 lines (43 loc) · 1.3 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
apply plugin: 'java'
apply plugin: 'war'
apply plugin: 'tomcat'
apply plugin: 'groovy'
sourceCompatibility = 1.7
version = '1.0'
repositories {
mavenCentral()
}
def final HTTP_PORT = System.getenv('PORT') ? System.getenv('PORT').toInteger() : 8080
// 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 = 100
tomcatRun {
httpPort = HTTP_PORT
ajpPort = 8009 + portOffset
stopPort = 8081 + portOffset
contextPath = '/'
}
tomcatStop {
stopPort = 8081 + portOffset
stopKey = 'stopKey'
}
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'org.gradle.api.plugins:gradle-tomcat-plugin:1.0'
}
}
dependencies {
testCompile 'org.spockframework:spock-core:0.7-groovy-1.8'
compile 'org.codehaus.groovy:groovy-all:1.8.8'
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'
}
}
task stage(dependsOn: [assemble])