-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
48 lines (39 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
apply plugin: 'java'
apply plugin: 'jetty'
apply plugin: 'eclipse'
apply plugin: 'maven'
repositories.mavenCentral()
sourceCompatibility = targetCompatibility = 1.7
def enc = 'UTF-8'
tasks.withType(AbstractCompile).each { it.options.encoding = enc }
tasks.withType(GroovyCompile).each { it.groovyOptions.encoding = enc }
archivesBaseName = 'devkan-calc'
httpPort = 8081
stopPort = 9451
stopKey = 'foo'
dependencies {
providedCompile "javax.ws.rs:javax.ws.rs-api:2.0"
compile 'org.eclipse.jetty:jetty-server:8.1.14.v20131031'
compile 'org.eclipse.jetty:jetty-webapp:8.1.14.v20131031'
compile 'org.glassfish.jersey.containers:jersey-container-servlet:2.4'
testCompile 'junit:junit:4.11'
testCompile "org.glassfish.jersey.test-framework.providers:jersey-test-framework-provider-simple:2.0"
testCompile "org.fluentlenium:fluentlenium-festassert:0.9.1"
testCompile "org.glassfish.main.extras:glassfish-embedded-all:4.0"
}
test {
exclude '**/*IT*'
exclude '**/*$*'
exclude '**/*AcceptanceTest*'
}
task integrationTest(type:Test) {
include '**/*IT*'
testReportDir = new File(project.testReportDir.parent, 'integration-tests')
}
task acceptanceTest(type:Test) {
include '**/*AcceptanceTest*'
doFirst {
systemProperties 'host' : host
systemProperties 'context' : context
}
}