oracle / ojdbc-extensions

The Oracle JDBC Driver Extensions include providers for centralized configuration or token providers for authentication with the DB.
Universal Permissive License v1.0
13 stars 5 forks source link

Set oci-java-sdk-common-httpclient-jersey as Runtime Dependency #44

Closed ting-lan-wang closed 11 months ago

ting-lan-wang commented 11 months ago

The extension set oci-java-sdk-common-httpclient-jersey as a compile dependency, which should be set as a runtime dependency instead.

More details below: Starting from OCI Java SDK 3.x.x, users have to explicitly choose the http provider in their application, otherwise they will get the error message: No http provider available; add dependency on one of the oci-java-sdk-common-httpclient-* choices, e.g. oci-java-sdk-common-httpclient-jersey.

The extension selects oci-java-sdk-common-httpclient-jersey as the http provider so that the users don't have to worry if the http provider is not configured. Users can override the dependency with their own choice later in their pom file.