Skip to content

Commit 02b85b7

Browse files
Releasing version 3.0.0
Releasing version 3.0.0
2 parents 2306aff + 2805867 commit 02b85b7

File tree

279 files changed

+10057
-1222
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

279 files changed

+10057
-1222
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,22 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
4141
### Breaking Changes
4242
- Class `com.oracle.bmc.vulnerabilityscanning.model.HostScanAgentConfiguration$Vendor` has been removed in the Vulnerability Scanning service
4343

44+
## 3.0.0 - 2022-11-08
45+
### Added
46+
- Support for listing local and cross-region refreshable clones in the Database service
47+
- Support for adding multiple cloud VM clusters in the Database service
48+
- Support for creating rollback jobs in the Resource Manager service
49+
- Support for edge nodes in the Big Data service
50+
- Support for Single Client Access Name (SCAN) in the Data Flow service
51+
- Support for additional filters when listing application dependencies in the Application Dependency Management service
52+
- Support for additional properties when reading Vulnerability Audit resources in the Application Dependency Management service
53+
- Support for optionally passing compartment IDs when creating Vulnerability Audit resources in the Application Dependency Management service
54+
55+
### Breaking Changes
56+
- Includes the breaking changes from [3.0.0-beta2](https://github.com/oracle/oci-java-sdk/blob/master/CHANGELOG.md#300-beta2---2022-11-01)
57+
- Includes the breaking changes from [3.0.0-beta1](https://github.com/oracle/oci-java-sdk/blob/master/CHANGELOG.md#300-beta1---2022-10-25)
58+
- Field `certificateId` has been made mandatory in `com.oracle.bmc.resourcemanager.model.PrivateServerConfigDetails`
59+
4460
## 2.46.0 - 2022-10-04
4561
### Added
4662
- Support for calling Oracle Cloud Infrastructure services in the eu-dcc-milan-1 region

README.md

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
# Oracle Cloud Infrastructure SDK for Java
2-
[![Build Status](https://travis-ci.org/oracle/oci-java-sdk.svg?branch=master)](https://travis-ci.org/oracle/oci-java-sdk)
2+
[![ReleasePublished](https://github.com/oracle/oci-java-sdk/actions/workflows/releasepublished.yml/badge.svg?branch=master)](https://github.com/oracle/oci-java-sdk/actions/workflows/releasepublished.yml)
33

44
## About
55

66
oci-java-sdk provides an SDK for Java that you can use to manage your Oracle Cloud Infrastructure resources.
77

88
The project is open source and maintained by Oracle Corp. The home page for the project is [here](https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm).
99

10+
The OCI Java SDK versions `1.x.y` and `2.x.y` are now referred as OCI Legacy Java SDK. Any updates or bug fixes related to OCI Legacy Java SDK can be found in [legacy/v2/master branch](https://github.com/oracle/oci-java-sdk/tree/legacy/v2/master). Please refer [README.md](https://github.com/oracle/oci-java-sdk/blob/legacy/v2/master/README.md) to learn more about these legacy versions.
11+
12+
This Github repository will refer to OCI Java SDK version `3.x.y` by default where support for new features and services will be added.
13+
14+
1015
## Documentation
1116

1217
Full documentation, including prerequisites, installation, supported JDK versions and configuration instructions, is available [here](https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm).
@@ -24,48 +29,54 @@ For details on compatibility, advanced configurations, and add-ons, see [Configu
2429
export OCI_SDK_DEFAULT_CIRCUITBREAKER_ENABLED=FALSE
2530
```
2631

32+
## Changes Introduced In OCI Java SDK `3.x.y`
33+
### Removed dependencies on the following third-party libraries:
34+
1. Guava: Guava types have been replaced with JDK types:
35+
- `com.google.common.base.Optional` has been replaced with `java.util.Optional`
36+
- `com.google.common.base.Function` has been replaced with `java.util.function.Function`
37+
- `com.google.common.base.Predicate` has been replaced with `java.util.function.Predicate`
38+
- `com.google.common.base.Supplier` has been replaced with `java.util.function.Supplier`
39+
40+
### HTTP client library is pluggable
41+
There is no HTTP client library configured by default. The OCI Java SDK offers the following two choices for HTTP client libraries to choose from.
42+
- Jakarta EE 8/Jersey 2 - [bmc-common-httpclient-jersey](https://github.com/oracle/oci-java-sdk/tree/master/bmc-common-httpclient-choices/bmc-common-httpclient-jersey)
43+
- Jakarta EE 9/Jersey 3 - [bmc-common-httpclient-jersey3](https://github.com/oracle/oci-java-sdk/tree/master/bmc-common-httpclient-choices/bmc-common-httpclient-jersey3)
44+
2745
## Examples
2846

29-
Examples can be found [here](/bmc-examples/src/main/java/).
47+
### Example for Jersey 2 as HTTP client library (OCI Java SDK `3.x.y`)
48+
In order to use Jersey 2 as HTTP client library, a dependency on `oci-java-sdk-common-httpclient-jersey` needs to be explicitly declared in application's `pom.xml`. Please refer [bmc-jersey-examples/pom.xml](https://github.com/oracle/oci-java-sdk/blob/master/bmc-other-examples/bmc-jersey-examples/pom.xml)
3049

31-
Please compile the `bmc-examples` module before running any example, specially if it is your first time working with the examples. Failure to do so can lead to exception like `ClassNotFoundException`. You can compile the source code of the examples as below:
32-
```
33-
cd bmc-examples/
34-
mvn compile
35-
```
50+
Examples for Jersey 2 as HTTP client library can be found in [bmc-other-examples/bmc-jersey-examples](https://github.com/oracle/oci-java-sdk/blob/master/bmc-other-examples/bmc-jersey-examples)
3651

37-
You may run any example by invoking the `exec:java` goal and passing appropriate values for `exec.mainClass` and `.exec.arguments` properties,
38-
for example: `ObjectStorageGetBucketExample` class requires 3 arguments which are OCID of the compartment, name of bucket, name of object. This example class can be executed as follows:
39-
```
40-
mvn -am -pl bmc-examples exec:java -Dexec.mainClass=ObjectStorageGetBucketExample \
41-
-Dexec.arguments=compartment_ocid,bucket_name,object_name
42-
```
43-
You can also compile and run the example at the same time by doing the following:
44-
```
45-
mvn clean compile -am -pl bmc-examples exec:java -Dexec.mainClass=ObjectStorageGetBucketExample \
46-
-Dexec.arguments=compartment_ocid,bucket_name,object_name
47-
```
52+
### Example for Jersey 3 as HTTP client library (OCI Java SDK `3.x.y`)
53+
In order to use Jersey 3 as HTTP client library, a dependency on `oci-java-sdk-common-httpclient-jersey3` needs to be explicitly declared in application's `pom.xml`. Please refer [bmc-jersey3-examples/pom.xml](https://github.com/oracle/oci-java-sdk/blob/master/bmc-other-examples/bmc-jersey3-examples/pom.xml)
54+
55+
Examples for Jersey 3 as HTTP client library can be found in [bmc-other-examples/bmc-jersey3-examples](https://github.com/oracle/oci-java-sdk/blob/master/bmc-other-examples/bmc-jersey3-examples)
4856

49-
Where `compartment_id`, `bucket_name`, and `object_name` should be substituted with appropriate values according to your setup.
57+
### Example for OCI Legacy Java SDK (OCI Java SDK `1.x.y` and `2.x.y`)
58+
Examples for OCI Legacy Java SDK can be found [here](https://github.com/oracle/oci-java-sdk/tree/legacy/v2/master#examples).
5059

5160
## Help
5261

5362
For details on contributions, questions, or feedback, see [Contact Us](https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/javasdk.htm#ContactUs).
5463

5564
## Changes
5665

57-
See [CHANGELOG](/CHANGELOG.md).
66+
See [CHANGELOG](https://github.com/oracle/oci-java-sdk/blob/master/CHANGELOG.md).
5867

5968
## Contributing
6069

61-
oci-java-sdk is an open source project. See [CONTRIBUTING](/CONTRIBUTING.md) for details.
70+
oci-java-sdk is an open source project. See [CONTRIBUTING](https://github.com/oracle/oci-java-sdk/blob/master/CONTRIBUTING.md) for details.
6271

6372
Oracle gratefully acknowledges the contributions to oci-java-sdk that have been made by the community.
6473

6574
## Known Issues
6675

6776
You can find information on any known issues with the SDK [here](https://docs.cloud.oracle.com/iaas/Content/knownissues.htm) and under the [“Issues” tab of this GitHub repository](https://github.com/oracle/oci-java-sdk/issues).
6877

78+
To learn about known issues with OCI Legacy Java SDK, please refer [Known Issues in OCI Legacy Java SDK](https://github.com/oracle/oci-java-sdk/blob/legacy/v2/master/README.md#known-issues)
79+
6980
### Potential data corruption issue with OCI Java SDK on binary data upload with `RefreshableOnNotAuthenticatedProvider`
7081

7182
**Details**: When using version 1.25.1 or earlier of the OCI Java SDK clients that upload streams of data (for example `ObjectStorageClient` or `FunctionsInvokeClient`), either synchronously and asynchronously, and you use a `RefreshableOnNotAuthenticatedProvider` (for example, for Resource Principals or Instance Principals) you may be affected by **silent data corruption**.
@@ -90,18 +101,12 @@ Use `ApacheConnectionClosingStrategy.ImmediateClosingStrategy` for large files w
90101
`ApacheConnectionClosingStrategy.ImmediateClosingStrategy` on the other hand takes longer when using partial read for smaller stream size (< 1MB). Please consider your use-case and change accordingly. For more info please look into : https://github.com/oracle/oci-java-sdk/blob/master/ApacheConnector-README.md.
91102

92103
Note : If both the above Apache Connection closing strategies do not give you optimal results for your use-cases, please consider switching back to Jersey Default `HttpUrlConnectorProvider`.
93-
For more info on Apache Connector, please look into ApacheConnector-README.
94-
95-
### OCI Java SDK shows incorrect service details while displaying the logs for BmcException
96-
97-
OCI Java SDK displays wrong service details when a BmcException is thrown. For example, exception generated from service A could see information about service B. This behavior can be seen in versions `2.23.0` to `2.34.0` making it thread unsafe. Please update to version `2.35.0`, which has the fix for this issue, or later.
98-
99-
You can find information on any known issues with the SDK [here](https://docs.cloud.oracle.com/iaas/Content/knownissues.htm) and under the “Issues” tab of this GitHub repository.
104+
For more info on Apache Connector, please look into [ApacheConnector-README](https://github.com/oracle/oci-java-sdk/blob/master/ApacheConnector-README.md).
100105

101106
## License
102107

103108
Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved.
104109
This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl
105110
or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
106111

107-
See [LICENSE](/LICENSE.txt) for more details.
112+
See [LICENSE](https://github.com/oracle/oci-java-sdk/blob/master/LICENSE.txt) for more details.

bmc-addons/bmc-apache-configurator-jersey-addon/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.oracle.oci.sdk</groupId>
66
<artifactId>oci-java-sdk-addons</artifactId>
7-
<version>3.0.0-beta2</version>
7+
<version>3.0.0</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010

@@ -18,14 +18,14 @@
1818
<dependency>
1919
<groupId>com.oracle.oci.sdk</groupId>
2020
<artifactId>oci-java-sdk-bom</artifactId>
21-
<version>3.0.0-beta2</version>
21+
<version>3.0.0</version>
2222
<type>pom</type>
2323
<scope>import</scope>
2424
</dependency>
2525
<dependency>
2626
<groupId>com.oracle.oci.sdk</groupId>
2727
<artifactId>oci-java-sdk-common-httpclient-jersey</artifactId>
28-
<version>3.0.0-beta2</version>
28+
<version>3.0.0</version>
2929
<type>pom</type>
3030
<scope>import</scope>
3131
</dependency>

bmc-addons/bmc-apache-configurator-jersey-addon/src/main/java/com/oracle/bmc/http/client/jersey/apacheconfigurator/ApacheConfigurator.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,6 @@ public void customizeClient(HttpClientBuilder builder) {
8181
setApacheConnectorProperties(builder);
8282

8383
setSslContext(builder);
84-
85-
// TODO: DEX-14784 - do we need the ContentLengthFilter?
86-
// Required for calls to only allow Apache to set the content-length header.
87-
// Otherwise, apache will throw an exception if it already exists. For example, such a case
88-
// includes
89-
// ObjectStorage where the content-length is explicitly set in the header based on the value
90-
// in the request.
91-
// client.register(new ContentLengthFilter());
9284
}
9385

9486
/**

bmc-addons/bmc-apache-configurator-jersey3-addon/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.oracle.oci.sdk</groupId>
66
<artifactId>oci-java-sdk-addons</artifactId>
7-
<version>3.0.0-beta2</version>
7+
<version>3.0.0</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010

@@ -18,14 +18,14 @@
1818
<dependency>
1919
<groupId>com.oracle.oci.sdk</groupId>
2020
<artifactId>oci-java-sdk-bom</artifactId>
21-
<version>3.0.0-beta2</version>
21+
<version>3.0.0</version>
2222
<type>pom</type>
2323
<scope>import</scope>
2424
</dependency>
2525
<dependency>
2626
<groupId>com.oracle.oci.sdk</groupId>
2727
<artifactId>oci-java-sdk-common-httpclient-jersey3</artifactId>
28-
<version>3.0.0-beta2</version>
28+
<version>3.0.0</version>
2929
<type>pom</type>
3030
<scope>import</scope>
3131
</dependency>

bmc-addons/bmc-apache-configurator-jersey3-addon/src/main/java/com/oracle/bmc/http/client/jersey3/apacheconfigurator/ApacheConfigurator.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,6 @@ public void customizeClient(HttpClientBuilder builder) {
8181
setApacheConnectorProperties(builder);
8282

8383
setSslContext(builder);
84-
85-
// TODO: DEX-14784 - do we need the ContentLengthFilter?
86-
// Required for calls to only allow Apache to set the content-length header.
87-
// Otherwise, apache will throw an exception if it already exists. For example, such a case
88-
// includes
89-
// ObjectStorage where the content-length is explicitly set in the header based on the value
90-
// in the request.
91-
// client.register(new ContentLengthFilter());
9284
}
9385

9486
/**

bmc-addons/bmc-apache-connector-provider/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.oracle.oci.sdk</groupId>
77
<artifactId>oci-java-sdk-addons</artifactId>
8-
<version>3.0.0-beta2</version>
8+
<version>3.0.0</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111

@@ -19,7 +19,7 @@
1919
<dependency>
2020
<groupId>com.oracle.oci.sdk</groupId>
2121
<artifactId>oci-java-sdk-common</artifactId>
22-
<version>3.0.0-beta2</version>
22+
<version>3.0.0</version>
2323
</dependency>
2424
</dependencies>
2525
</project>

bmc-addons/bmc-graalvm-addon/pom.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44
<parent>
5-
<artifactId>oci-java-sdk-addons</artifactId>
65
<groupId>com.oracle.oci.sdk</groupId>
7-
<version>3.0.0-beta2</version>
6+
<artifactId>oci-java-sdk-addons</artifactId>
7+
<version>3.0.0</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010
<artifactId>oci-java-sdk-addons-graalvm</artifactId>
@@ -145,37 +145,37 @@
145145
<dependency>
146146
<groupId>com.oracle.oci.sdk</groupId>
147147
<artifactId>oci-java-sdk-common</artifactId>
148-
<version>3.0.0-beta2</version>
148+
<version>3.0.0</version>
149149
<scope>provided</scope>
150150
</dependency>
151151
<dependency>
152152
<groupId>com.oracle.oci.sdk</groupId>
153153
<artifactId>oci-java-sdk-common-httpclient</artifactId>
154-
<version>3.0.0-beta2</version>
154+
<version>3.0.0</version>
155155
<scope>provided</scope>
156156
</dependency>
157157
<dependency>
158158
<groupId>com.oracle.oci.sdk</groupId>
159159
<artifactId>oci-java-sdk-core</artifactId>
160-
<version>3.0.0-beta2</version>
160+
<version>3.0.0</version>
161161
<scope>test</scope>
162162
</dependency>
163163
<dependency>
164164
<groupId>com.oracle.oci.sdk</groupId>
165165
<artifactId>oci-java-sdk-identity</artifactId>
166-
<version>3.0.0-beta2</version>
166+
<version>3.0.0</version>
167167
<scope>test</scope>
168168
</dependency>
169169
<dependency>
170170
<groupId>com.oracle.oci.sdk</groupId>
171171
<artifactId>oci-java-sdk-objectstorage-extensions</artifactId>
172-
<version>3.0.0-beta2</version>
172+
<version>3.0.0</version>
173173
<scope>test</scope>
174174
</dependency>
175175
<dependency>
176176
<groupId>com.oracle.oci.sdk</groupId>
177177
<artifactId>oci-java-sdk-objectstorage-generated</artifactId>
178-
<version>3.0.0-beta2</version>
178+
<version>3.0.0</version>
179179
<scope>test</scope>
180180
</dependency>
181181
</dependencies>

bmc-addons/bmc-graalvm-jersey3-addon/pom.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44
<parent>
5-
<artifactId>oci-java-sdk-addons</artifactId>
65
<groupId>com.oracle.oci.sdk</groupId>
7-
<version>3.0.0-beta2</version>
6+
<artifactId>oci-java-sdk-addons</artifactId>
7+
<version>3.0.0</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010
<artifactId>oci-java-sdk-addons-graalvm-jersey3</artifactId>
@@ -146,37 +146,37 @@
146146
<dependency>
147147
<groupId>com.oracle.oci.sdk</groupId>
148148
<artifactId>oci-java-sdk-common</artifactId>
149-
<version>3.0.0-beta2</version>
149+
<version>3.0.0</version>
150150
<scope>provided</scope>
151151
</dependency>
152152
<dependency>
153153
<groupId>com.oracle.oci.sdk</groupId>
154154
<artifactId>oci-java-sdk-common-httpclient</artifactId>
155-
<version>3.0.0-beta2</version>
155+
<version>3.0.0</version>
156156
<scope>provided</scope>
157157
</dependency>
158158
<dependency>
159159
<groupId>com.oracle.oci.sdk</groupId>
160160
<artifactId>oci-java-sdk-core</artifactId>
161-
<version>3.0.0-beta2</version>
161+
<version>3.0.0</version>
162162
<scope>test</scope>
163163
</dependency>
164164
<dependency>
165165
<groupId>com.oracle.oci.sdk</groupId>
166166
<artifactId>oci-java-sdk-identity</artifactId>
167-
<version>3.0.0-beta2</version>
167+
<version>3.0.0</version>
168168
<scope>test</scope>
169169
</dependency>
170170
<dependency>
171171
<groupId>com.oracle.oci.sdk</groupId>
172172
<artifactId>oci-java-sdk-objectstorage-extensions</artifactId>
173-
<version>3.0.0-beta2</version>
173+
<version>3.0.0</version>
174174
<scope>test</scope>
175175
</dependency>
176176
<dependency>
177177
<groupId>com.oracle.oci.sdk</groupId>
178178
<artifactId>oci-java-sdk-objectstorage-generated</artifactId>
179-
<version>3.0.0-beta2</version>
179+
<version>3.0.0</version>
180180
<scope>test</scope>
181181
</dependency>
182182
</dependencies>

bmc-addons/bmc-resteasy-client-configurator/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>com.oracle.oci.sdk</groupId>
66
<artifactId>oci-java-sdk-addons</artifactId>
7-
<version>3.0.0-beta2</version>
7+
<version>3.0.0</version>
88
<relativePath>../pom.xml</relativePath>
99
</parent>
1010

@@ -24,7 +24,7 @@
2424
<dependency>
2525
<groupId>com.oracle.oci.sdk</groupId>
2626
<artifactId>oci-java-sdk-common</artifactId>
27-
<version>3.0.0-beta2</version>
27+
<version>3.0.0</version>
2828
</dependency>
2929
</dependencies>
3030
</project>

0 commit comments

Comments
 (0)