Skip to content
This repository was archived by the owner on Jun 11, 2024. It is now read-only.

Commit 602b0ea

Browse files
authored
Merge pull request #317 from asolntsev/upgrade-dependencies
Upgrade dependencies
2 parents d0cdd76 + a1a41ae commit 602b0ea

File tree

9 files changed

+17
-30
lines changed

9 files changed

+17
-30
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To use BrowserUp Proxy in your tests or application, add the `browserup-proxy-co
2626
<dependency>
2727
<groupId>com.browserup</groupId>
2828
<artifactId>browserup-proxy-core</artifactId>
29-
<version>1.0.0</version>
29+
<version>3.0.0</version>
3030
<scope>test</scope>
3131
</dependency>
3232
```
@@ -343,11 +343,11 @@ When you build the latest code from source, you'll have access to the latest sna
343343
<dependency>
344344
<groupId>com.browserup</groupId>
345345
<artifactId>browserup-proxy-core</artifactId>
346-
<version>1.0.0-SNAPSHOT</version>
346+
<version>3.0.0-SNAPSHOT</version>
347347
<scope>test</scope>
348348
</dependency>
349349
```
350350
Or for gradle:
351351
```yml
352-
testImplementation 'com.browserup:browserup-proxy-core:1.0.0-SNAPSHOT'
352+
testImplementation 'com.browserup:browserup-proxy-core:3.0.0-SNAPSHOT'
353353
```

browserup-proxy-core/build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ uploadArchives {
5858

5959
dependencies {
6060
api "io.netty:netty-codec:${nettyVersion}"
61-
api('xyz.rogfam:littleproxy:2.0.1') {
61+
api("xyz.rogfam:littleproxy:${littleProxyVersion}") {
6262
exclude(group: 'io.netty', module: 'netty-all')
6363
}
6464

@@ -70,7 +70,7 @@ dependencies {
7070
implementation "com.fasterxml.jackson.core:jackson-core:${jacksonVersion}"
7171
implementation "com.fasterxml.jackson.core:jackson-databind:${jacksonVersion}"
7272
implementation "com.fasterxml.jackson.core:jackson-annotations:${jacksonVersion}"
73-
implementation 'com.google.guava:guava:30.0-jre'
73+
implementation "com.google.guava:guava:${guavaVersion}"
7474
implementation 'com.jcraft:jzlib:1.1.3'
7575
implementation 'dnsjava:dnsjava:3.3.1'
7676
implementation "io.netty:netty-all:${nettyVersion}"
@@ -99,4 +99,3 @@ dependencies {
9999
testImplementation 'org.seleniumhq.selenium:selenium-firefox-driver:3.141.59'
100100
testImplementation 'org.apache.httpcomponents:httpclient:4.5.13'
101101
}
102-

browserup-proxy-mitm/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ uploadArchives {
5757
}
5858

5959
dependencies {
60-
implementation 'com.google.guava:guava:30.0-jre'
60+
implementation "com.google.guava:guava:${guavaVersion}"
6161

6262
implementation "org.bouncycastle:bcpkix-jdk15on:${bcpVersion}"
6363
implementation "org.bouncycastle:bcprov-jdk15on:${bcpVersion}"
@@ -66,7 +66,7 @@ dependencies {
6666
implementation "io.netty:netty-codec:${nettyVersion}"
6767
implementation "org.slf4j:jcl-over-slf4j:${slf4jVersion}"
6868
implementation "org.slf4j:slf4j-api:${slf4jVersion}"
69-
implementation('xyz.rogfam:littleproxy:2.0.1') {
69+
implementation("xyz.rogfam:littleproxy:${littleProxyVersion}") {
7070
exclude(group: 'io.netty', module: 'netty-all')
7171
}
7272

browserup-proxy-rest/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ uploadArchives {
6464
dependencies {
6565
implementation project(':browserup-proxy-core')
6666

67-
implementation 'com.google.guava:guava:30.0-jre'
67+
implementation "com.google.guava:guava:${guavaVersion}"
6868
implementation "com.google.inject:guice:${guiceVersion}"
6969
implementation "com.google.inject.extensions:guice-servlet:${guiceVersion}"
7070
implementation "com.google.inject.extensions:guice-multibindings:${guiceVersion}"
@@ -100,6 +100,7 @@ dependencies {
100100
testImplementation 'org.codehaus.groovy.modules.http-builder:http-builder:0.7.2'
101101
testImplementation 'org.hamcrest:hamcrest:2.2'
102102
testImplementation 'org.hamcrest:hamcrest-library:2.2'
103+
103104
testImplementation 'org.mockito:mockito-core:3.6.28'
104105
testImplementation 'org.seleniumhq.selenium:selenium-api:3.4.0'
105106
testImplementation 'org.awaitility:awaitility:4.0.2'

build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ configurations.all {
1717
// conflicts later. BrowserUpDriver _should_ be allowed to use whatever libs it wants.
1818
//resolutionStrategy.force 'com.google.guava:guava:*', 'com.google.guava:guava:22.0'
1919
// UPDATE Jan 27, 2019: I forked org.littleshoot.proxy to Browserup and upgraded it to Guava 27.0.1-jre
20-
resolutionStrategy.force 'com.google.guava:guava:*', 'com.google.guava:guava:30.0-jre'
20+
resolutionStrategy.force 'com.google.guava:guava:*', "com.google.guava:guava:${guavaVersion}"
2121
}
2222
}
2323

@@ -40,7 +40,9 @@ subprojects {
4040
jettyVersion = '9.4.35.v20201120'
4141
log4jVersion = '2.14.0'
4242
nettyVersion = '4.1.54.Final'
43+
littleProxyVersion = '2.0.1'
4344
slf4jVersion = '1.7.30'
45+
guavaVersion = '30.0-jre'
4446
}
4547

4648
repositories {

gradle/wrapper/gradle-wrapper.jar

293 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-6.4.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ fi
130130
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
131131
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
132132
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133-
133+
134134
JAVACMD=`cygpath --unix "$JAVACMD"`
135135

136136
# We build the pattern for arguments to be converted via cygpath

gradlew.bat

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
4040

4141
set JAVA_EXE=java.exe
4242
%JAVA_EXE% -version >NUL 2>&1
43-
if "%ERRORLEVEL%" == "0" goto init
43+
if "%ERRORLEVEL%" == "0" goto execute
4444

4545
echo.
4646
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@@ -54,7 +54,7 @@ goto fail
5454
set JAVA_HOME=%JAVA_HOME:"=%
5555
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5656

57-
if exist "%JAVA_EXE%" goto init
57+
if exist "%JAVA_EXE%" goto execute
5858

5959
echo.
6060
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
@@ -64,29 +64,14 @@ echo location of your Java installation.
6464

6565
goto fail
6666

67-
:init
68-
@rem Get command-line arguments, handling Windows variants
69-
70-
if not "%OS%" == "Windows_NT" goto win9xME_args
71-
72-
:win9xME_args
73-
@rem Slurp the command line arguments.
74-
set CMD_LINE_ARGS=
75-
set _SKIP=2
76-
77-
:win9xME_args_slurp
78-
if "x%~1" == "x" goto execute
79-
80-
set CMD_LINE_ARGS=%*
81-
8267
:execute
8368
@rem Setup the command line
8469

8570
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
8671

8772

8873
@rem Execute Gradle
89-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
74+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
9075

9176
:end
9277
@rem End local scope for the variables with windows NT shell

0 commit comments

Comments
 (0)