Skip to content

Commit 9a66751

Browse files
committed
Update gradle to 6.9.4
1 parent 9cc884a commit 9a66751

File tree

10 files changed

+91
-53
lines changed

10 files changed

+91
-53
lines changed

build.gradle

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -31,30 +31,32 @@ dependencies {
3131
jacksonVersion = '2.17.2'
3232
}
3333

34-
compile 'com.squareup.okhttp3:okhttp:4.12.0'
35-
compile "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
36-
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jacksonVersion"
37-
compile "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:$jacksonVersion"
38-
compile 'org.apache.commons:commons-lang3:3.12.0'
39-
compile 'org.zeroturnaround:zt-exec:1.12'
40-
compile 'org.slf4j:slf4j-api:1.7.36'
41-
compile 'ch.qos.logback:logback-classic:1.5.13'
34+
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
35+
implementation "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
36+
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jacksonVersion"
37+
implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:$jacksonVersion"
38+
implementation 'org.apache.commons:commons-lang3:3.12.0'
39+
implementation 'org.zeroturnaround:zt-exec:1.12'
40+
implementation 'org.slf4j:slf4j-api:1.7.36'
41+
implementation 'ch.qos.logback:logback-classic:1.5.13'
4242
compileOnly 'junit:junit:4.13.2'
43-
testCompile 'com.sun.jersey:jersey-client:1.19.4'
44-
testCompile 'com.google.guava:guava:33.0.0-jre'
45-
testCompile 'org.springframework:spring-web:5.3.20'
46-
testCompile 'org.apache.httpcomponents:httpclient:4.5.13'
47-
testCompile 'org.assertj:assertj-core:3.22.0'
48-
testCompile 'net.javacrumbs.json-unit:json-unit:2.32.0'
49-
testCompile 'net.javacrumbs.json-unit:json-unit-fluent:2.28.0'
50-
testCompile 'org.eclipse.jetty:jetty-server:9.3.11.v20160721'
51-
testCompile 'org.skyscreamer:jsonassert:1.5.0'
52-
testCompile 'org.mockito:mockito-core:4.2.0'
53-
testCompile 'org.powermock:powermock-module-junit4:2.0.9'
54-
testCompile 'com.github.stefanbirkner:system-rules:1.19.0'
55-
testCompile 'io.projectreactor.ipc:reactor-netty:0.7.15.RELEASE'
56-
testCompile 'io.projectreactor:reactor-test:3.2.3.RELEASE'
57-
testCompile 'org.awaitility:awaitility:4.1.1'
43+
44+
testImplementation 'com.sun.jersey:jersey-client:1.19.4'
45+
testImplementation 'com.google.guava:guava:31.1-jre'
46+
testImplementation 'org.springframework:spring-web:5.3.20'
47+
testImplementation 'org.apache.httpcomponents:httpclient:4.5.13'
48+
testImplementation 'org.assertj:assertj-core:3.22.0'
49+
testImplementation 'net.javacrumbs.json-unit:json-unit:2.32.0'
50+
testImplementation 'net.javacrumbs.json-unit:json-unit-fluent:2.28.0'
51+
testImplementation 'org.eclipse.jetty:jetty-server:9.3.11.v20160721'
52+
testImplementation 'org.skyscreamer:jsonassert:1.5.0'
53+
testImplementation 'org.mockito:mockito-core:4.2.0'
54+
testImplementation 'org.powermock:powermock-module-junit4:2.0.9'
55+
testImplementation 'com.github.stefanbirkner:system-rules:1.19.0'
56+
testImplementation 'io.projectreactor.ipc:reactor-netty:0.7.15.RELEASE'
57+
testImplementation 'io.projectreactor:reactor-test:3.2.3.RELEASE'
58+
testImplementation 'org.awaitility:awaitility:4.1.1'
59+
testImplementation 'com.squareup.okhttp3:okhttp:4.12.0'
5860
}
5961

6062
allprojects { subproj ->
@@ -167,7 +169,7 @@ jacocoTestReport {
167169
}
168170

169171
wrapper {
170-
gradleVersion = '5.6.4'
172+
gradleVersion = '6.9.4'
171173
}
172174

173175
// Tasks for updating Hoverfly binaries

gradle/wrapper/gradle-wrapper.jar

-561 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.4-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
#!/usr/bin/env sh
22

3+
#
4+
# Copyright 2015 the original author or authors.
5+
#
6+
# Licensed under the Apache License, Version 2.0 (the "License");
7+
# you may not use this file except in compliance with the License.
8+
# You may obtain a copy of the License at
9+
#
10+
# https://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#
18+
319
##############################################################################
420
##
521
## Gradle start up script for UN*X
@@ -28,7 +44,7 @@ APP_NAME="Gradle"
2844
APP_BASE_NAME=`basename "$0"`
2945

3046
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31-
DEFAULT_JVM_OPTS=""
47+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
3248

3349
# Use the maximum available, or set MAX_FD != -1 to use that value.
3450
MAX_FD="maximum"
@@ -109,8 +125,8 @@ if $darwin; then
109125
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
110126
fi
111127

112-
# For Cygwin, switch paths to Windows format before running java
113-
if $cygwin ; then
128+
# For Cygwin or MSYS, switch paths to Windows format before running java
129+
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
114130
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
115131
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
116132
JAVACMD=`cygpath --unix "$JAVACMD"`

gradlew.bat

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
@rem
2+
@rem Copyright 2015 the original author or authors.
3+
@rem
4+
@rem Licensed under the Apache License, Version 2.0 (the "License");
5+
@rem you may not use this file except in compliance with the License.
6+
@rem You may obtain a copy of the License at
7+
@rem
8+
@rem https://www.apache.org/licenses/LICENSE-2.0
9+
@rem
10+
@rem Unless required by applicable law or agreed to in writing, software
11+
@rem distributed under the License is distributed on an "AS IS" BASIS,
12+
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
@rem See the License for the specific language governing permissions and
14+
@rem limitations under the License.
15+
@rem
16+
117
@if "%DEBUG%" == "" @echo off
218
@rem ##########################################################################
319
@rem
@@ -14,7 +30,7 @@ set APP_BASE_NAME=%~n0
1430
set APP_HOME=%DIRNAME%
1531

1632
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17-
set DEFAULT_JVM_OPTS=
33+
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
1834

1935
@rem Find java.exe
2036
if defined JAVA_HOME goto findJavaFromJavaHome

junit5/build.gradle

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,28 @@ dependencies {
1919
ext {
2020
junitJupiterVersion = '5.10.2'
2121
junitPlatformVersion = '1.10.2'
22+
jacksonVersion = '2.17.2'
2223
}
2324

2425
compileOnly "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
2526
compileOnly "org.junit.platform:junit-platform-commons:$junitPlatformVersion"
26-
compile(rootProject) {
27+
implementation(rootProject) {
2728
exclude group: 'junit'
2829
}
2930

30-
testCompile "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
31-
testCompile "org.junit.platform:junit-platform-testkit:$junitPlatformVersion"
32-
testCompile 'org.mockito:mockito-core:4.2.0'
33-
testCompile 'org.assertj:assertj-core:3.21.0'
34-
testCompile 'net.javacrumbs.json-unit:json-unit:2.28.0'
35-
testCompile 'net.javacrumbs.json-unit:json-unit-fluent:2.28.0'
31+
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
32+
testImplementation "org.junit.platform:junit-platform-testkit:$junitPlatformVersion"
33+
testImplementation 'com.squareup.okhttp3:okhttp:4.12.0'
34+
testImplementation 'org.mockito:mockito-core:4.2.0'
35+
testImplementation 'org.assertj:assertj-core:3.21.0'
36+
testImplementation 'net.javacrumbs.json-unit:json-unit:2.28.0'
37+
testImplementation 'net.javacrumbs.json-unit:json-unit-fluent:2.28.0'
38+
testImplementation "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
3639

3740
// Only needed to run tests in an IntelliJ IDEA that bundles an older version
38-
testRuntime("org.junit.platform:junit-platform-launcher:$junitPlatformVersion")
39-
testRuntime("org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion")
40-
testRuntime("org.junit.vintage:junit-vintage-engine:$junitJupiterVersion")
41+
testRuntimeOnly("org.junit.platform:junit-platform-launcher:$junitPlatformVersion")
42+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion")
43+
testRuntimeOnly("org.junit.vintage:junit-vintage-engine:$junitJupiterVersion")
4144

4245
}
4346

junit5/src/main/java/io/specto/hoverfly/junit5/HoverflyExtensionUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
import io.specto.hoverfly.junit5.api.HoverflyConfig;
88
import io.specto.hoverfly.junit5.api.HoverflySimulate;
99
import io.specto.hoverfly.junit5.api.UnsetSimulationPreprocessor;
10-
import org.apache.commons.lang3.StringUtils;
1110
import org.junit.platform.commons.util.ReflectionUtils;
1211

1312
import java.nio.file.Path;
1413
import java.nio.file.Paths;
14+
import org.junit.platform.commons.util.StringUtils;
1515

1616
import static io.specto.hoverfly.junit.core.HoverflyConfig.localConfigs;
1717
import static io.specto.hoverfly.junit.core.HoverflyConfig.remoteConfigs;

junit5/src/test/java/io/specto/hoverfly/junit5/HoverflyCustomCaptureTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package io.specto.hoverfly.junit5;
22

3-
import com.fasterxml.jackson.databind.ObjectMapper;
43
import io.specto.hoverfly.junit.core.Hoverfly;
54
import io.specto.hoverfly.junit.core.HoverflyMode;
65
import io.specto.hoverfly.junit.core.ObjectMapperFactory;

testng/build.gradle

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,23 @@ repositories {
1717
dependencies {
1818
ext {
1919
testNgVersion = '6.14.3'
20+
jacksonVersion = '2.17.2'
2021
}
2122

2223
compileOnly "org.testng:testng:$testNgVersion"
23-
compile(rootProject) {
24+
implementation(rootProject) {
2425
exclude group: 'junit'
2526
}
26-
testCompile files(rootProject.sourceSets.test.output.classesDirs)
27-
testCompile "org.testng:testng:$testNgVersion"
28-
testCompile 'junit:junit:4.12'
29-
testCompile 'org.springframework:spring-web:4.3.20.RELEASE'
30-
testCompile 'org.assertj:assertj-core:3.11.1'
31-
testCompile 'org.skyscreamer:jsonassert:1.5.0'
32-
testCompile 'org.eclipse.jetty:jetty-server:9.3.11.v20160721'
33-
testCompile 'com.google.guava:guava:20.0'
34-
testCompile 'org.mockito:mockito-core:2.23.4'
27+
implementation "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
28+
testImplementation files(rootProject.sourceSets.test.output.classesDirs)
29+
testImplementation "org.testng:testng:$testNgVersion"
30+
testImplementation 'junit:junit:4.12'
31+
testImplementation 'org.springframework:spring-web:4.3.20.RELEASE'
32+
testImplementation 'org.assertj:assertj-core:3.11.1'
33+
testImplementation 'org.skyscreamer:jsonassert:1.5.0'
34+
testImplementation 'org.eclipse.jetty:jetty-server:9.3.11.v20160721'
35+
testImplementation 'com.google.guava:guava:20.0'
36+
testImplementation 'org.mockito:mockito-core:2.23.4'
3537
}
3638

3739
compileTestJava.dependsOn tasks.getByPath(':testClasses')

testng/src/main/java/io/specto/hoverfly/testng/HoverflyTestNG.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
import io.specto.hoverfly.junit.dsl.RequestMatcherBuilder;
1818
import io.specto.hoverfly.junit.dsl.StubServiceBuilder;
1919
import io.specto.hoverfly.junit.verification.VerificationCriteria;
20-
import org.apache.commons.lang3.StringUtils;
2120

2221
import java.nio.file.Files;
2322
import java.nio.file.Path;
2423
import java.nio.file.Paths;
2524
import java.util.*;
2625
import java.util.function.Predicate;
26+
import org.testng.util.Strings;
2727

2828
import static io.specto.hoverfly.junit.core.HoverflyConfig.localConfigs;
2929
import static io.specto.hoverfly.junit.core.HoverflyConstants.DEFAULT_HOVERFLY_EXPORT_PATH;
@@ -130,7 +130,7 @@ public static HoverflyTestNG inCaptureMode(String outputDir, String outputFilena
130130
* @return the rule
131131
*/
132132
public static HoverflyTestNG inCaptureMode(String outputDir, String outputFilename, HoverflyConfig hoverflyConfig) {
133-
if (StringUtils.isBlank(outputFilename)) {
133+
if (Strings.isNullOrEmpty(outputFilename)) {
134134
throw new IllegalArgumentException("Output simulation file name can not be blank.");
135135
}
136136
Path exportPath = createDirectoryIfNotExist(outputDir);

0 commit comments

Comments
 (0)