Skip to content

Commit

Permalink
Update oci-java-sdk-objectstorage to 2.46.0 (#186)
Browse files Browse the repository at this point in the history
* Update oci-java-sdk-objectstorage to 2.46.0

* Replace call to deprecated method

Co-authored-by: Julien Jean Paul Sirocchi <julien.sirocchi@gmail.com>
Co-authored-by: Amir M. Saeid <amir@glgdgt.com>
  • Loading branch information
3 people authored Oct 26, 2022
1 parent 3a2c3ba commit 5570f1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val scala_212 = "2.12.17"
lazy val scala_213 = "2.13.10"

lazy val V = new {
val ociSdk = "2.41.1"
val ociSdk = "2.46.0"
val scalaCollectionCompat = "2.8.1"
val zio = "1.0.17"
val `zio-nio` = "1.0.0-RC11"
Expand Down
5 changes: 3 additions & 2 deletions core/src/main/scala/zio/oci/objectstorage/Live.scala
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package zio.oci.objectstorage

import com.oracle.bmc.Options
import com.oracle.bmc.model.BmcException
import com.oracle.bmc.objectstorage.ObjectStorageAsyncClient
import com.oracle.bmc.objectstorage.responses.{GetObjectResponse, ListBucketsResponse, ListObjectsResponse}
Expand Down Expand Up @@ -99,8 +100,8 @@ object Live {
.fromAutoCloseable(
Task {
// disable sdk's stream auto-close as it's handled by ZStream.fromInputStreamEffect
// https://github.com/oracle/oci-java-sdk/blob/c45baca744629cc4c55623ae2a29866ac7728a77/ApacheConnector-README.md#switching-off-auto-close-of-streams
com.oracle.bmc.http.internal.ResponseHelper.shouldAutoCloseResponseInputStream(false)
// https://github.com/oracle/oci-java-sdk/blob/v2.46.0/ApacheConnector-README.md#switching-off-auto-close-of-streams
Options.shouldAutoCloseResponseInputStream(false)
ObjectStorageAsyncClient.builder().region(settings.region).build(settings.auth.auth)
}
)
Expand Down

0 comments on commit 5570f1b

Please sign in to comment.