Skip to content

Commit a777cb0

Browse files
authored
Fix incorrect Java version reference in the build.md (#3640)
1 parent b9e663b commit a777cb0

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

docs/build.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
# Build project
22

33
To build the project, you will need at least
4-
[Java 11](https://download.java.net/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz)
4+
[Java 21](https://whichjdk.com/)
55
and [Maven](https://maven.apache.org/) installed.
66

7+
If for whatever reason this Java reference will be stale,
8+
you can always get the current project Java version from `pom.xml` property
9+
```xml
10+
<java.version>...</java.version>
11+
```
12+
713
To verify the installed Java run in console:
814

915
```bash
@@ -13,9 +19,9 @@ java -version
1319
which should show something like (yours may be different):
1420

1521
```
16-
openjdk version "11.0.2" 2019-01-15
17-
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
18-
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
22+
openjdk version "21.0.5" 2024-10-15 LTS
23+
OpenJDK Runtime Environment Corretto-21.0.5.11.1 (build 21.0.5+11-LTS)
24+
OpenJDK 64-Bit Server VM Corretto-21.0.5.11.1 (build 21.0.5+11-LTS, mixed mode, sharing)
1925
```
2026

2127
Follow next steps to create JAR which can be deployed locally.

0 commit comments

Comments
 (0)