Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JVMCBC-1415: Support Java LTS 21 #393

Merged
merged 3 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/hello-world/pages/start-using-sdk.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ include::example$StartUsing.java[tags=start-using,indent=0]

== Quick Installation

We recommend running the latest Java LTS version (i.e. at the time of writing JDK 17) with the highest patch version available.
We recommend running the latest Java LTS version (i.e. at the time of writing JDK 21) with the highest patch version available.
// Other supported Java versions will work, too.
Couchbase publishes all stable artifacts to https://central.sonatype.com/namespace/com.couchbase.client[Maven Central].

Expand Down
5 changes: 3 additions & 2 deletions modules/project-docs/pages/compatibility.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ Other versions may work -- _but they are not tested and they are not supported_.

The following JDK releases are supported at time of 3.4 SDK release (October 2022):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is 21 supported right back across 3.4.x releases?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked into this - will reword tomorrow to say only latest version for JDK 21.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is 21 supported right back across 3.4.x releases?

Ideally it will be, but let's wait until we get a clean(-ish) CI run against Java 21 before making that claim.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added to line 66 (below).


* https://adoptium.net/[OpenJDK 11] (Hotspot recommended) or https://www.oracle.com/java/technologies/downloads/#jdk11[Oracle JDK 11]
* https://adoptium.net/[OpenJDK 17 with HotSpot JVM] (recommended)
* https://adoptium.net/[OpenJDK 21 with HotSpot JVM] (recommended)
* https://adoptium.net/[OpenJDK 17 with HotSpot JVM]
* https://www.oracle.com/java/technologies/downloads/#jdk17[Oracle JDK 17 (recommended)]
* https://adoptium.net/[OpenJDK 11] (Hotspot recommended) or https://www.oracle.com/java/technologies/downloads/#jdk11[Oracle JDK 11]
* https://adoptium.net/[OpenJDK 1.8 with HotSpot JVM]
* https://www.oracle.com/java/technologies/downloads/#java8[Oracle JDK 1.8]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @ingenthr and @dnault I'm a touch unclear on our current support position w.r.t. Java - does this list look correct to you?

Expand Down
2 changes: 1 addition & 1 deletion modules/project-docs/pages/migrating-sdk-code-to-3.n.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ The Java SDK 3.x is available for download from the same resources as the previo
In addition, a `zip` file is available with the required jars.
Please see the xref:sdk-release-notes.adoc[Release Notes] for up-to-date information.

IMPORTANT: Java SDK 3.x has a minimum required Java version of 8, although we recommend running the latest LTS version (i.e. at the time of writing JDK 11) with the highest patch version available.
IMPORTANT: Java SDK 3.x has a minimum required Java version of 8, although we recommend running the latest LTS version (i.e. at the time of writing JDK 21) with the highest patch version available.

Note that the transitive dependency list has changed.
As a refresher, Java SDK 2 depended on the following artifacts:
Expand Down
3 changes: 1 addition & 2 deletions modules/project-docs/pages/sdk-full-installation.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ The underlying OS normally makes no difference, but library incompatibilities in

At least Java 8 is required for current releases;
see the xref:project-docs:compatibility.adoc#jdk-compat[Compatibility] section for details.
We recommend running the latest Java LTS version (i.e. at the time of writing JDK 17) with the highest patch version available.
Java 17 has various enhancements like sealed classes, pattern matching for switch expressions (in preview), and further updates and improvements on core libraries.
We recommend running the latest Java LTS version (i.e. at the time of writing JDK 21) with the highest patch version available.

Couchbase publishes all stable artifacts to https://central.sonatype.com/namespace/com.couchbase.client[Maven Central].
The latest version (as of October 2023) is https://central.sonatype.com/artifact/com.couchbase.client/java-client/3.4.11/jar[3.4.11].
Expand Down