Skip to content

Commit af25cef

Browse files
committed
Java 21 mention in the docs
1 parent 857d461 commit af25cef

6 files changed

Lines changed: 12 additions & 12 deletions

File tree

docs/asciidoc/cayenne-guide/src/docs/asciidoc/_cayenne-guide/part1/setup.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ include::../var.adoc[]
2727
|Cayenne Version |Java Version |Status
2828

2929
|5.0
30-
|Java 11 or newer
30+
|Java 21 or newer
3131
|Development
3232

3333
|4.2

docs/asciidoc/getting-started-db-first/src/docs/asciidoc/_getting-started-db-first/part1-setup.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This chapter lists the recommended software used in the tutorial.
1919

2020
==== Java
2121

22-
Cayenne 5.0 requires JDK 11 or newer.
22+
Cayenne 5.0 requires JDK 21 or newer.
2323

2424
==== IntelliJ IDEA IDE
2525

docs/asciidoc/getting-started-db-first/src/docs/asciidoc/_getting-started-db-first/part4-java-classes.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Note that Cayenne code is unrecognized, that's because we need to include Cayenn
5353
</dependencies>
5454
----
5555

56-
Additionally we need to tell `Maven compiler plugin` that our code uses Java 11:
56+
Additionally we need to tell `Maven compiler plugin` that our code uses Java 21:
5757
[source,xml]
5858
----
5959
<build>
@@ -62,8 +62,8 @@ Additionally we need to tell `Maven compiler plugin` that our code uses Java 11:
6262
<plugin>
6363
<artifactId>maven-compiler-plugin</artifactId>
6464
<configuration>
65-
<source>11</source>
66-
<target>11</target>
65+
<source>21</source>
66+
<target>21</target>
6767
</configuration>
6868
</plugin>
6969
...

docs/asciidoc/getting-started-guide/src/docs/asciidoc/_getting-started-guide/java-classes.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ should see pairs of classes generated for each mapped entity. You probably also
3434
there's a bunch of red squiggles next to the newly generated Java classes in IDEA.
3535
This is because our project does not include Cayenne as a Maven dependency yet. Let's
3636
fix it now by adding "cayenne" artifact in the bottom of the `pom.xml` file.
37-
Also we should tell Maven compile plugin that our project needs Java 8.
37+
Also we should tell Maven compile plugin that our project needs Java 21.
3838
The resulting POM should look like this:
3939

4040
[source,xml,subs="verbatim,attributes"]
@@ -48,8 +48,8 @@ The resulting POM should look like this:
4848
4949
<properties>
5050
<cayenne.version>{project-version}</cayenne.version> <!--1-->
51-
<maven.compiler.source>11</maven.compiler.source> <!--2-->
52-
<maven.compiler.target>11</maven.compiler.target>
51+
<maven.compiler.source>21</maven.compiler.source> <!--2-->
52+
<maven.compiler.target>21</maven.compiler.target>
5353
</properties>
5454
5555
<dependencies>
@@ -67,7 +67,7 @@ The resulting POM should look like this:
6767
</project>
6868
----
6969
<1> Here you can specify the version of Cayenne you are actually using
70-
<2> Tell Maven to support Java 11
70+
<2> Tell Maven to support Java 21
7171

7272
Your computer must be connected to the internet. Once you edit the `pom.xml`, IDEA
7373
will download the needed Cayenne jar file and add it to the project build path. As a

docs/asciidoc/getting-started-guide/src/docs/asciidoc/_getting-started-guide/setup.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ installed) a minimally needed set of software to build a Cayenne application.
1818

1919
=== Install Java
2020

21-
Obviously, JDK has to be installed. Cayenne 5.0 requires JDK 11 or newer.
21+
Obviously, JDK has to be installed. Cayenne 5.0 requires JDK 21 or newer.
2222

2323
=== Install IntelliJ IDEA
2424

docs/asciidoc/upgrade-guide/src/docs/asciidoc/_upgrade-guide/changes.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
== Java Version
1616

17-
Minimum required JDK version is 11 or newer. If your project requires Java 8, you should keep using Cayenne 4.2.
18-
Cayenne 5.0 is fully tested with Java 11, 17 and 21.
17+
Minimum required JDK version is 21 or newer. If your project requires Java 8 or 11, you should keep using Cayenne 4.2.
18+
Cayenne 5.0 is fully tested with Java 21 and 25.
1919

2020
== Incompatible Changes
2121

0 commit comments

Comments
 (0)