diff --git a/src/main/asciidoc/configuration.adoc b/src/main/asciidoc/configuration.adoc index 49e56379f..7c17cc080 100644 --- a/src/main/asciidoc/configuration.adoc +++ b/src/main/asciidoc/configuration.adoc @@ -44,6 +44,64 @@ Here is an example on how to use the current SNAPSHOT dependency: ---- ==== +.Overriding the Couchbase SDK Version + +Some users may wish to use a Couchbase Java SDK version different from the one referenced in a Spring Data Couchbase release for the purpose of obtaining bug and vulnerability fixes. Since Couchbase Java SDK minor version releases are backwards compatible, this version of Spring Data Couchbase is compatible and supported with any 3.x version of the Couchbase Java SDK newer than the one specified in the release dependencies. To change the Couchbase Java SDK version used by Spring Data Couchbase, simply override the dependency in the application pom.xml as follows: + +.If Using the spring-data-couchbase Dependency Directly +==== +[source,xml] +---- + + org.springframework.data + spring-data-couchbase + ${version} + + + com.couchbase.client + java-client + + + + + + com.couchbase.client + java-client + 3.4.7 + +---- +==== + +.If Using the spring-data-starter-couchbase Dependency (from Spring Initialzr) +==== +[source,xml] +---- + + org.springframework.boot + spring-boot-starter-parent + x.y.z + + + + + org.springframework.boot + spring-boot-starter-data-couchbase + + + com.couchbase.client + java-client + + + + + + com.couchbase.client + java-client + 3.4.7 + +---- +==== + Once you have all needed dependencies on the classpath, you can start configuring it. Only Java config is supported (XML config has been removed in 4.0).