-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
106 lines (90 loc) · 3.34 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
group 'info.ernestas'
version '2.0.1'
apply plugin: 'java'
apply plugin: 'war'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
repositories {
mavenCentral()
}
war {
archiveName 'eventmonitor.war'
}
ext {
activeMQVersion = '5.14.0'
hibernateVersion = '5.0.7.Final'
springFrameworkVersion = '4.3.2.RELEASE'
slf4jVersion = '1.7.13'
}
dependencies {
compile "org.slf4j:slf4j-api:$slf4jVersion"
compile "org.slf4j:slf4j-log4j12:$slf4jVersion"
compile 'log4j:log4j:1.2.17'
compile 'com.fasterxml.jackson.core:jackson-databind:2.8.1'
compile "org.apache.activemq:activemq-spring:$activeMQVersion"
compile "org.apache.activemq:activemq-kahadb-store:$activeMQVersion"
compile "org.springframework:spring-jms:$springFrameworkVersion"
compile "org.springframework:spring-context:$springFrameworkVersion"
compile "org.springframework:spring-context-support:$springFrameworkVersion"
compile "org.springframework:spring-webmvc:$springFrameworkVersion"
compile "org.springframework:spring-webmvc:$springFrameworkVersion"
compile "org.springframework:spring-websocket:$springFrameworkVersion"
compile 'org.springframework.data:spring-data-jpa:1.10.2.RELEASE'
compile "org.hibernate:hibernate-entitymanager:$hibernateVersion"
compile "org.hibernate:hibernate-ehcache:$hibernateVersion"
compile 'javax.servlet:javax.servlet-api:3.1.0'
compile 'javax.servlet:jstl:1.2'
compile 'com.h2database:h2:1.4.191'
testCompile ('junit:junit:4.12') {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testCompile "org.springframework:spring-test:$springFrameworkVersion"
testCompile 'org.apache.tomcat.embed:tomcat-embed-websocket:8.5.4'
testCompile ('org.mockito:mockito-core:1.10.19') {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
testCompile 'com.jayway.jsonpath:json-path:2.2.0'
testCompile 'com.google.code.gson:gson:2.7'
testCompile 'org.hamcrest:hamcrest-all:1.3'
testCompile 'org.eclipse.jetty:jetty-client:9.4.0.M1'
}
tasks.withType(Test) {
// Add default Spring profile for all tests
systemProperty "spring.profiles.active", "test"
// Show full stacktrace when exception appears
testLogging {
exceptionFormat = 'full'
}
reports.html.destination = file("${reporting.baseDir}/${name}")
}
sourceSets {
integrationTest {
java {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
srcDir file('src/integration-test/java')
}
resources.srcDirs = ['src/main/resources', 'src/test/resources', 'src/integration-test/resources']
}
test {
resources.srcDirs = ['src/main/resources', 'src/test/resources', 'src/integration-test/resources']
}
}
configurations {
integrationTestCompile.extendsFrom testCompile
integrationTestRuntime.extendsFrom testRuntime
}
task integrationTest(type: Test) {
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
}
check.dependsOn integrationTest
integrationTest.mustRunAfter test
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.3.1'
}