-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
68 lines (56 loc) · 1.73 KB
/
Copy pathbuild.gradle
File metadata and controls
68 lines (56 loc) · 1.73 KB
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
66
67
68
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'war'
repositories {
mavenCentral()
}
configurations {
runner
}
war.archiveName = 'todos.war'
buildDir = 'target'
dependencies {
testCompile 'org.hamcrest:hamcrest-all:1.3'
testCompile 'junit:junit:4.12'
testCompile 'org.springframework:spring-test:4.1.5.RELEASE'
testCompile 'org.springframework:spring-core:4.1.4.RELEASE'
compile 'org.springframework:spring-core:4.1.4.RELEASE'
compile 'org.springframework:spring-web:4.1.4.RELEASE'
compile 'org.springframework:spring-webmvc:4.1.4.RELEASE'
compile 'org.springframework.data:spring-data-jpa:1.3.3.RELEASE'
compile 'org.springframework.ws:spring-ws:2.0.2.RELEASE'
compile 'com.fasterxml.jackson.core:jackson-core:2.5.1'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.5.1'
compile 'com.fasterxml.jackson.core:jackson-databind:2.5.1'
compile 'com.github.jsimone:webapp-runner:7.0.57.2'
runner 'com.github.jsimone:webapp-runner:7.0.57.2'
}
idea {
module {
sourceDirs += file('src/')
testSourceDirs += file('test/')
}
}
test {
testLogging {
events 'started', 'passed', 'skipped', 'failed'
}
afterTest { desc, result ->
println "Executing test ${desc.name} [${desc.className}] with result: ${result.resultType}"
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.3'
}
task stage(dependsOn: ['copyRunner'])
task javaExec(type: JavaExec){
main = "webapp.runner.launch.Main"
classpath = sourceSets.main.runtimeClasspath
}
task copyRunner(type: Copy, dependsOn: 'build'){
from (configurations.runner.resolve()) {
include 'webapp-runner-*.jar'
rename {'webapp-runner.jar'}
}
into "${buildDir}/libs/"
}