-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
92 lines (74 loc) · 2.65 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
import static org.gradle.api.tasks.wrapper.Wrapper.DistributionType.ALL
plugins {
id "nebula.optional-base" version "3.2.0"
id "com.palantir.git-version" version "0.8.0"
id "org.sonarqube" version "2.5"
}
ext {
feignVersion = "9.5.1"
retrofitVersion = "2.3.0"
okHttpVersion = "3.9.0"
slf4jVersion="1.7.25"
}
apply plugin: "java"
apply plugin: "jacoco"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
jcenter()
}
dependencies {
compile "com.squareup.retrofit2:retrofit:${retrofitVersion}"
compile "com.squareup.retrofit2:converter-jackson:${retrofitVersion}"
compile "com.squareup.retrofit2:converter-scalars:${retrofitVersion}"
// compile "com.squareup.retrofit2:converter-simplexml:${retrofitVersion}"
compile "com.squareup.okhttp3:okhttp:${okHttpVersion}"
compile "com.squareup.okhttp3:logging-interceptor:${okHttpVersion}"
compile "org.slf4j:slf4j-api:${slf4jVersion}"
compile "org.slf4j:jul-to-slf4j:${slf4jVersion}"
compile "com.google.code.findbugs:jsr305:3.0.2", optional
compile "org.projectlombok:lombok:1.16.18", optional
compile "javax.validation:validation-api:2.0.0.Final", optional
compile "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.9.0"
compile "com.fasterxml.jackson.module:jackson-module-jaxb-annotations:2.9.0"
testRuntime "org.codehaus.janino:janino:3.0.7"
testCompile "junit:junit:4.12"
testCompile "ch.qos.logback:logback-classic:1.2.3"
testCompile "io.github.benas:random-beans:3.7.0"
testCompile "org.assertj:assertj-core:3.8.0"
testCompile "org.mockito:mockito-core:2.11.0"
}
task wrapper(type: Wrapper) {
gradleVersion = '4.1'
distributionType = ALL
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
jacocoTestReport {
group = "report"
reports {
xml.enabled true
csv.enabled false
html.enabled false
}
}
test {
testLogging {
exceptionFormat = 'full'
showStandardStreams = true
}
outputs.upToDateWhen { false }
systemProperties System.properties
systemProperties 'logback.configurationFile' : new File(projectDir,'src/test/resources/logback.xml').absolutePath
// listen to events in the test execution lifecycle
beforeTest { descriptor ->
logger.lifecycle("Running test: " + descriptor)
}
// listen to standard out and standard error of the test JVM(s)
onOutput { descriptor, event ->
logger.lifecycle("Test: " + descriptor + " produced standard out/err: " + event.message )
}
}