Skip to content

Commit 9f628ff

Browse files
authored
Merge pull request #1581 from marklogic/feature/bump-okio
Forcing usage of okio 3.4.0
2 parents 7b595d7 + e341335 commit 9f628ff

File tree

4 files changed

+25
-18
lines changed

4 files changed

+25
-18
lines changed

examples/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ dependencies {
1818
api 'com.squareup.okhttp3:okhttp:4.10.0'
1919
api 'io.github.rburgst:okhttp-digest:2.7'
2020
api 'org.slf4j:slf4j-api:1.7.36'
21-
api 'com.fasterxml.jackson.core:jackson-databind:2.14.1'
21+
api 'com.fasterxml.jackson.core:jackson-databind:2.14.3'
2222

2323
// hsqldb < 2.7 has a High CVE - https://nvd.nist.gov/vuln/detail/CVE-2022-41853 .
2424
// And hsqldb 2.6+ requires Java 11+. So this is ignored, along with the associated test,
2525
// until the Java Client can drop Java 8 support.
2626
// api 'org.hsqldb:hsqldb:2.7.1'
2727

2828
api 'org.jdom:jdom2:2.0.6.1'
29-
api 'org.dom4j:dom4j:2.1.3'
30-
api 'com.google.code.gson:gson:2.10'
29+
api 'org.dom4j:dom4j:2.1.4'
30+
api 'com.google.code.gson:gson:2.10.1'
3131
api 'net.sourceforge.htmlcleaner:htmlcleaner:2.26'
3232
api 'com.opencsv:opencsv:4.6'
33-
api 'org.springframework:spring-jdbc:5.3.27'
33+
api 'org.springframework:spring-jdbc:5.3.29'
3434
api 'org.apache.commons:commons-lang3:3.12.0'
3535
api 'org.apache.httpcomponents:httpclient:4.5.14'
3636
}

marklogic-client-api-functionaltests/build.gradle

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,18 @@ task testSandbox(type:Test) {
2020

2121
dependencies {
2222
implementation project (':marklogic-client-api')
23-
implementation 'org.skyscreamer:jsonassert:1.5.0'
23+
implementation 'org.skyscreamer:jsonassert:1.5.1'
2424
implementation 'org.slf4j:slf4j-api:1.7.36'
2525
implementation 'commons-io:commons-io:2.11.0'
26-
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
27-
implementation 'com.fasterxml.jackson.core:jackson-core:2.14.1'
28-
implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.1'
26+
implementation 'com.squareup.okio:okio:3.4.0'
27+
implementation 'com.squareup.okhttp3:okhttp:4.11.0'
28+
implementation 'com.fasterxml.jackson.core:jackson-core:2.14.3'
29+
implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.3'
2930
implementation "org.jdom:jdom2:2.0.6.1"
30-
implementation "com.marklogic:ml-app-deployer:4.4.0"
31+
implementation "com.marklogic:ml-app-deployer:4.5.2"
3132

3233
testImplementation 'ch.qos.logback:logback-classic:1.3.5'
33-
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.1'
34+
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
3435
testImplementation 'org.xmlunit:xmlunit-legacy:2.9.0'
3536
testImplementation 'org.apache.commons:commons-lang3:3.12.0'
3637
testImplementation 'org.apache.httpcomponents:httpclient:4.5.14'

marklogic-client-api/build.gradle

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@ dependencies {
1515
implementation 'org.glassfish.jaxb:jaxb-runtime:2.3.8'
1616
implementation 'org.glassfish.jaxb:jaxb-core:2.3.0.1'
1717
}
18+
19+
// Forcing usage of 3.4.0 instead of 3.2.0 to address vulnerability - https://security.snyk.io/vuln/SNYK-JAVA-COMSQUAREUPOKIO-5820002
20+
implementation 'com.squareup.okio:okio:3.4.0'
1821
implementation 'com.squareup.okhttp3:okhttp:4.11.0'
1922
implementation 'com.squareup.okhttp3:logging-interceptor:4.11.0'
2023
implementation 'io.github.rburgst:okhttp-digest:2.7'
24+
2125
implementation 'com.sun.mail:javax.mail:1.6.2'
2226
implementation 'javax.ws.rs:javax.ws.rs-api:2.1.1'
2327
implementation 'org.slf4j:slf4j-api:1.7.36'
@@ -31,12 +35,12 @@ dependencies {
3135
compileOnly 'commons-codec:commons-codec:1.15'
3236
compileOnly 'org.apache.httpcomponents:httpclient:4.5.14'
3337
compileOnly 'org.jdom:jdom2:2.0.6.1'
34-
compileOnly 'org.dom4j:dom4j:2.1.3'
35-
compileOnly 'com.google.code.gson:gson:2.10'
38+
compileOnly 'org.dom4j:dom4j:2.1.4'
39+
compileOnly 'com.google.code.gson:gson:2.10.1'
3640

3741
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.3'
3842
// Forcing junit version to avoid vulnerability with older version in xmlunit
39-
testImplementation 'junit:junit:4.13.1'
43+
testImplementation 'junit:junit:4.13.2'
4044
testImplementation 'org.xmlunit:xmlunit-legacy:2.9.1'
4145
testImplementation project(':examples')
4246

@@ -47,6 +51,7 @@ dependencies {
4751
// Starting with mockito 5.x, Java 11 is required, so sticking with 4.x as we have to support Java 8.
4852
testImplementation "org.mockito:mockito-core:4.11.0"
4953
testImplementation "org.mockito:mockito-inline:4.11.0"
54+
testImplementation 'com.squareup.okio:okio:3.4.0'
5055
testImplementation "com.squareup.okhttp3:mockwebserver:4.11.0"
5156

5257
testImplementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.14.3'
@@ -57,7 +62,7 @@ dependencies {
5762
testImplementation 'org.apache.httpcomponents:httpclient:4.5.14'
5863
testImplementation 'com.opencsv:opencsv:4.6'
5964
testImplementation 'org.geonames:geonames:1.0'
60-
testImplementation 'org.skyscreamer:jsonassert:1.5.0'
65+
testImplementation 'org.skyscreamer:jsonassert:1.5.1'
6166
}
6267

6368
// Ensure that mlHost and mlPassword can override the defaults of localhost/admin if they've been modified

test-app/build.gradle

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
plugins {
2-
id 'com.marklogic.ml-gradle' version '4.4.0'
2+
id 'com.marklogic.ml-gradle' version '4.5.2'
33
id 'java'
44
id "com.github.psxpaul.execfork" version "0.2.2"
55
}
66

77
dependencies {
88
implementation "io.undertow:undertow-core:2.2.24.Final"
99
implementation "io.undertow:undertow-servlet:2.2.24.Final"
10-
implementation "com.marklogic:ml-javaclient-util:4.4.0"
10+
implementation "com.marklogic:ml-javaclient-util:4.5.1"
1111
implementation 'org.slf4j:slf4j-api:1.7.36'
1212
implementation 'ch.qos.logback:logback-classic:1.3.5'
13-
implementation "com.fasterxml.jackson.core:jackson-databind:2.14.1"
14-
implementation 'com.squareup.okhttp3:okhttp:4.10.0'
13+
implementation "com.fasterxml.jackson.core:jackson-databind:2.14.3"
14+
implementation 'com.squareup.okio:okio:3.4.0'
15+
implementation 'com.squareup.okhttp3:okhttp:4.11.0'
1516
}
1617

1718
// See https://github.com/psxpaul/gradle-execfork-plugin for docs.

0 commit comments

Comments
 (0)