diff --git a/.gitignore b/.gitignore
index 52a0ac23..404e4718 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,8 +4,6 @@
.DS_Store
.project
build/
-lib/ivy-2.2.0.jar
-bin/
target/
log/
diff --git a/README.md b/README.md
index 8e9d9a29..d83edea8 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,13 @@
-# Official Couchbase Java SDK
+# (OBSOLETE) Official Couchbase Java SDK
+
+**NOTE: This repository contains the 2.x SDK series, which reached End of Life in March 2022.
+We recommend that you check out our 3.x series, which can be found here: https://github.com/couchbase/couchbase-jvm-clients**
This project is the official driver for Couchbase when working with Java (or on the JVM). It provides management, CRUD and query facilities through both asynchronous and synchronous APIs.
## Features ##
-* High-Performance Key/Value and Query (N1QL, Views) operations
+* High-Performance Key/Value and Query (N1QL, Views, Search, Analytics) operations
* Cluster-Awareness and automatic rebalance and failover handling
* Asynchronous (through [RxJava](https://github.com/ReactiveX/RxJava)) and Synchronous APIs
* Transparent Encryption Support
@@ -19,12 +22,11 @@ The primary way to ask questions is through our official [Forums](http://forums.
## Quick Start ##
The easiest way is to download the jar as well as its transitive dependencies (only 2) through maven:
-
```xml
Here is a simple hello world that you can run and verify your installation works:
+Here is a simple hello world that you can run and verify your installation works:
--// Connect to a cluster on localhost -Cluster cluster = CouchbaseCluster.create(); -cluster.authenticate("username", "password"); +-+ // Connect to a cluster on localhost + Cluster cluster = CouchbaseCluster.create(); + cluster.authenticate("username", "password"); -// Open the default bucket -Bucket bucket = cluster.openBucket("myTestBucket"); + // Open the default bucket + Bucket bucket = cluster.openBucket("myTestBucket"); -// Create a user and insert it -JsonObject user = JsonObject.empty() - .put("firstname", "Walter") - .put("lastname", "White") - .put("job", "chemistry teacher") - .put("age", 50); -JsonDocument doc = JsonDocument.create("walter", user); -JsonDocument response = bucket.upsert(doc); + // Create a user and insert it + JsonObject user = JsonObject.empty() + .put("firstname", "Walter") + .put("lastname", "White") + .put("job", "chemistry teacher") + .put("age", 50); + JsonDocument doc = JsonDocument.create("walter", user); + JsonDocument response = bucket.upsert(doc); -// Read it back out -JsonDocument walter = bucket.get("walter"); -System.out.println("Found: " + walter); + // Read it back out + JsonDocument walter = bucket.get("walter"); + System.out.println("Found: " + walter); -// Disconnect from the cluster -cluster.disconnect(); -+ // Disconnect from the cluster + cluster.disconnect(); +
- If you don't know where to go next, start at the CouchbaseCluster class! -
\ No newline at end of file ++ If you don't know where to go next, start at the CouchbaseCluster class! +
+ \ No newline at end of file diff --git a/pom.xml b/pom.xml index 2e654641..60979beb 100644 --- a/pom.xml +++ b/pom.xml @@ -16,19 +16,19 @@