Skip to content

Commit dcd008d

Browse files
committed
build simplification
1 parent 30ce115 commit dcd008d

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

build.gradle

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ testlogger {
5858
theme 'mocha'
5959
}
6060

61-
tasks.withType(Test) {
61+
tasks.withType(Test).configureEach {
6262
testlogger {
6363
theme 'mocha'
6464
}
@@ -102,10 +102,10 @@ tasks.register('acceptance-tests', Test) {
102102

103103
dependencies {
104104
// Utilities
105-
implementation group: 'org.apache.commons', name: 'commons-configuration2', version: '2.11.0'
105+
implementation group: 'org.apache.commons', name: 'commons-configuration2', version: '2.13.0'
106106

107107
// HTTP client
108-
def retrofitVersion = '2.9.0'
108+
def retrofitVersion = '3.0.0'
109109
implementation group: 'com.squareup.retrofit2', name: 'retrofit', version: retrofitVersion
110110
implementation group: 'com.squareup.retrofit2', name: 'converter-jackson', version: retrofitVersion
111111

@@ -136,13 +136,6 @@ dependencies {
136136

137137
// Wait test utility
138138
testImplementation group: 'org.awaitility', name: 'awaitility', version: '4.3.0'
139-
140-
// Transitive dependencies constraints
141-
constraints {
142-
implementation('com.squareup.okhttp3:okhttp:4.12.0') {
143-
because 'version 3.14.9 used by com.squareup.retrofit2:retrofit:2.9.0 has known vulnerabilities'
144-
}
145-
}
146139
}
147140

148141
jacocoTestReport {
@@ -151,7 +144,7 @@ jacocoTestReport {
151144
xml.required = true
152145
html.required = true
153146
}
154-
getExecutionData().setFrom(fileTree(buildDir).include("/jacoco/unit-tests.exec"))
147+
getExecutionData().setFrom(fileTree(rootProject.layout.buildDirectory).include("/jacoco/unit-tests.exec"))
155148
afterEvaluate {
156149
classDirectories.setFrom(files(classDirectories.files.collect {
157150
fileTree(dir: it, exclude: [

0 commit comments

Comments
 (0)