This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cayenne.git
The following commit(s) were added to refs/heads/master by this push:
new af25cefcb Java 21 mention in the docs
af25cefcb is described below
commit af25cefcb5eb746cc4059f52fe3895217df0069d
Author: Andrus Adamchik <[email protected]>
AuthorDate: Sun May 10 13:31:57 2026 -0400
Java 21 mention in the docs
---
.../src/docs/asciidoc/_cayenne-guide/part1/setup.adoc | 2 +-
.../src/docs/asciidoc/_getting-started-db-first/part1-setup.adoc | 2 +-
.../asciidoc/_getting-started-db-first/part4-java-classes.adoc | 6 +++---
.../src/docs/asciidoc/_getting-started-guide/java-classes.adoc | 8 ++++----
.../src/docs/asciidoc/_getting-started-guide/setup.adoc | 2 +-
.../upgrade-guide/src/docs/asciidoc/_upgrade-guide/changes.adoc | 4 ++--
6 files changed, 12 insertions(+), 12 deletions(-)
diff --git
a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part1/setup.adoc
b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part1/setup.adoc
index 386edc477..901fc4b03 100644
---
a/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part1/setup.adoc
+++
b/docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part1/setup.adoc
@@ -27,7 +27,7 @@ include::../var.adoc[]
|Cayenne Version |Java Version |Status
|5.0
-|Java 11 or newer
+|Java 21 or newer
|Development
|4.2
diff --git
a/docs/asciidoc/getting-started-db-first/src/docs/asciidoc/_getting-started-db-first/part1-setup.adoc
b/docs/asciidoc/getting-started-db-first/src/docs/asciidoc/_getting-started-db-first/part1-setup.adoc
index a0ecb6a93..935e66657 100644
---
a/docs/asciidoc/getting-started-db-first/src/docs/asciidoc/_getting-started-db-first/part1-setup.adoc
+++
b/docs/asciidoc/getting-started-db-first/src/docs/asciidoc/_getting-started-db-first/part1-setup.adoc
@@ -19,7 +19,7 @@ This chapter lists the recommended software used in the
tutorial.
==== Java
-Cayenne 5.0 requires JDK 11 or newer.
+Cayenne 5.0 requires JDK 21 or newer.
==== IntelliJ IDEA IDE
diff --git
a/docs/asciidoc/getting-started-db-first/src/docs/asciidoc/_getting-started-db-first/part4-java-classes.adoc
b/docs/asciidoc/getting-started-db-first/src/docs/asciidoc/_getting-started-db-first/part4-java-classes.adoc
index 8ba6610a5..62d6d3e35 100644
---
a/docs/asciidoc/getting-started-db-first/src/docs/asciidoc/_getting-started-db-first/part4-java-classes.adoc
+++
b/docs/asciidoc/getting-started-db-first/src/docs/asciidoc/_getting-started-db-first/part4-java-classes.adoc
@@ -53,7 +53,7 @@ Note that Cayenne code is unrecognized, that's because we
need to include Cayenn
</dependencies>
----
-Additionally we need to tell `Maven compiler plugin` that our code uses Java
11:
+Additionally we need to tell `Maven compiler plugin` that our code uses Java
21:
[source,xml]
----
<build>
@@ -62,8 +62,8 @@ Additionally we need to tell `Maven compiler plugin` that our
code uses Java 11:
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
- <source>11</source>
- <target>11</target>
+ <source>21</source>
+ <target>21</target>
</configuration>
</plugin>
...
diff --git
a/docs/asciidoc/getting-started-guide/src/docs/asciidoc/_getting-started-guide/java-classes.adoc
b/docs/asciidoc/getting-started-guide/src/docs/asciidoc/_getting-started-guide/java-classes.adoc
index 722332f0d..daf83dd94 100644
---
a/docs/asciidoc/getting-started-guide/src/docs/asciidoc/_getting-started-guide/java-classes.adoc
+++
b/docs/asciidoc/getting-started-guide/src/docs/asciidoc/_getting-started-guide/java-classes.adoc
@@ -34,7 +34,7 @@ should see pairs of classes generated for each mapped entity.
You probably also
there's a bunch of red squiggles next to the newly generated Java classes in
IDEA.
This is because our project does not include Cayenne as a Maven dependency
yet. Let's
fix it now by adding "cayenne" artifact in the bottom of the `pom.xml` file.
-Also we should tell Maven compile plugin that our project needs Java 8.
+Also we should tell Maven compile plugin that our project needs Java 21.
The resulting POM should look like this:
[source,xml,subs="verbatim,attributes"]
@@ -48,8 +48,8 @@ The resulting POM should look like this:
<properties>
<cayenne.version>{project-version}</cayenne.version> <!--1-->
- <maven.compiler.source>11</maven.compiler.source> <!--2-->
- <maven.compiler.target>11</maven.compiler.target>
+ <maven.compiler.source>21</maven.compiler.source> <!--2-->
+ <maven.compiler.target>21</maven.compiler.target>
</properties>
<dependencies>
@@ -67,7 +67,7 @@ The resulting POM should look like this:
</project>
----
<1> Here you can specify the version of Cayenne you are actually using
-<2> Tell Maven to support Java 11
+<2> Tell Maven to support Java 21
Your computer must be connected to the internet. Once you edit the `pom.xml`,
IDEA
will download the needed Cayenne jar file and add it to the project build
path. As a
diff --git
a/docs/asciidoc/getting-started-guide/src/docs/asciidoc/_getting-started-guide/setup.adoc
b/docs/asciidoc/getting-started-guide/src/docs/asciidoc/_getting-started-guide/setup.adoc
index a729f1ab7..c078e3a1b 100644
---
a/docs/asciidoc/getting-started-guide/src/docs/asciidoc/_getting-started-guide/setup.adoc
+++
b/docs/asciidoc/getting-started-guide/src/docs/asciidoc/_getting-started-guide/setup.adoc
@@ -18,7 +18,7 @@ installed) a minimally needed set of software to build a
Cayenne application.
=== Install Java
-Obviously, JDK has to be installed. Cayenne 5.0 requires JDK 11 or newer.
+Obviously, JDK has to be installed. Cayenne 5.0 requires JDK 21 or newer.
=== Install IntelliJ IDEA
diff --git
a/docs/asciidoc/upgrade-guide/src/docs/asciidoc/_upgrade-guide/changes.adoc
b/docs/asciidoc/upgrade-guide/src/docs/asciidoc/_upgrade-guide/changes.adoc
index 2ffa5de97..854e14788 100644
--- a/docs/asciidoc/upgrade-guide/src/docs/asciidoc/_upgrade-guide/changes.adoc
+++ b/docs/asciidoc/upgrade-guide/src/docs/asciidoc/_upgrade-guide/changes.adoc
@@ -14,8 +14,8 @@
== Java Version
-Minimum required JDK version is 11 or newer. If your project requires Java 8,
you should keep using Cayenne 4.2.
-Cayenne 5.0 is fully tested with Java 11, 17 and 21.
+Minimum required JDK version is 21 or newer. If your project requires Java 8
or 11, you should keep using Cayenne 4.2.
+Cayenne 5.0 is fully tested with Java 21 and 25.
== Incompatible Changes