diff --git a/build.sbt b/build.sbt index 167c5b7..ad7ff14 100644 --- a/build.sbt +++ b/build.sbt @@ -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" diff --git a/core/src/main/scala/zio/oci/objectstorage/Live.scala b/core/src/main/scala/zio/oci/objectstorage/Live.scala index 1f27215..87b8463 100644 --- a/core/src/main/scala/zio/oci/objectstorage/Live.scala +++ b/core/src/main/scala/zio/oci/objectstorage/Live.scala @@ -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} @@ -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) } )