-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
52 lines (41 loc) · 1.52 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
apply plugin: 'java'
apply plugin: 'signing'
apply plugin: 'maven'
apply from: 'publish.gradle'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
sourceSets {
integrationTest {
java {
compileClasspath += sourceSets.test.runtimeClasspath + sourceSets.main.runtimeClasspath
runtimeClasspath += sourceSets.test.runtimeClasspath + sourceSets.main.runtimeClasspath
srcDir file('src/integration-test/java')
}
resources.srcDir file('src/integration-test/resources')
}
}
configurations {
integrationTestCompile.extendsFrom testCompile
integrationTestRuntime.extendsFrom testRuntime
}
task integrationTest(type: Test) {
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
}
tasks.withType(Test) {
reports.html.destination = file("${reporting.baseDir}/${name}")
}
dependencies {
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.8.8.1'
compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.3'
compile group: 'commons-io', name: 'commons-io', version: '2.5'
testCompile 'junit:junit:4.11'
testCompile group: 'org.assertj', name: 'assertj-core', version: '3.8.0'
testCompile group: 'com.github.tomakehurst', name: 'wiremock', version: '2.6.0'
integrationTestCompile group: 'commons-cli', name: 'commons-cli', version: '1.4'
}
task Wrapper(type: Wrapper) {
gradleVersion = '5.6.2' //version required
}