Skip to content

Commit

Permalink
[Backport 1.3] Force upgrade the vulnerable dependencies of hadoop-mi…
Browse files Browse the repository at this point in the history
…nicluster, Enforce up-to-date Guava in buildSrc (opensearch-project#10011)
  • Loading branch information
kotwanikunal authored Sep 13, 2023
1 parent 8487d61 commit e100897
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Added
### Dependencies
- Bump `netty` from 4.1.96.Final to 4.1.97.Final ([#9553](https://github.com/opensearch-project/OpenSearch/pull/9553))
- Bump `org.xerial.snappy:snappy-java` from 1.1.8.2 to 1.1.10.3 ([#9252](https://github.com/opensearch-project/OpenSearch/pull/9252))
- Bump `com.squareup.okhttp3:okhttp` from 4.9.3 to 4.11.0 ([#9252](https://github.com/opensearch-project/OpenSearch/pull/9252))
- Bump `com.squareup.okio:okio` from 2.8.0 to 3.5.0 ([#9252](https://github.com/opensearch-project/OpenSearch/pull/9252))

### Changed
### Deprecated
Expand Down
6 changes: 6 additions & 0 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ dependencies {
}
}

configurations.all {
resolutionStrategy {
force "com.google.guava:guava:${props.getProperty('guava')}"
}
}

/*****************************************************************************
* Bootstrap repositories *
*****************************************************************************/
Expand Down
8 changes: 8 additions & 0 deletions test/fixtures/hdfs-fixture/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ dependencies {
exclude module: 'protobuf-java'
exclude group: 'org.codehaus.jackson'
exclude group: "org.bouncycastle"
exclude group: "com.squareup.okhttp3"
exclude group: "org.xerial.snappy"
exclude module: "json-io"
}

api "org.codehaus.jettison:jettison:${versions.jettison}"
Expand All @@ -58,4 +61,9 @@ dependencies {
api "org.eclipse.jetty:jetty-server:${versions.jetty}"
api "org.eclipse.jetty.websocket:javax-websocket-server-impl:${versions.jetty}"
runtimeOnly "com.google.guava:guava:${versions.guava}"
runtimeOnly("com.squareup.okhttp3:okhttp:4.11.0") {
exclude group: "com.squareup.okio"
}
runtimeOnly "com.squareup.okio:okio:3.5.0"
runtimeOnly "org.xerial.snappy:snappy-java:1.1.10.3"
}

0 comments on commit e100897

Please sign in to comment.