Skip to content

Commit

Permalink
Update to JDK 22
Browse files Browse the repository at this point in the history
  • Loading branch information
nroduit committed Jul 8, 2024
1 parent 420c23e commit 7abff9f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions content/getting-started/building-weasis.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ These instructions describe how to build Weasis directly from the Git repository

**Prerequisites**

1. JDK 21 or higher
1. JDK 22 or higher
2. Maven 3.5.3 or higher<br>
If your computer is behind a proxy server, [configure maven](https://maven.apache.org/guides/mini/guide-proxies.html).
3. Git
Expand Down Expand Up @@ -64,7 +64,7 @@ However, it is possible to run a local script `package-weasis.sh` on most system
{{< tabs groupId="build-native" >}}
{{% tab title="Bash" %}}
{{< highlight shell >}}
./build/script/package-weasis.sh --jdk "/home/.jdks/openjdk-21"
./build/script/package-weasis.sh --jdk "/home/.jdks/openjdk-22"
{{< /highlight >}}
{{% /tab %}}
{{< /tabs >}}
Expand Down
7 changes: 3 additions & 4 deletions content/getting-started/guidelines.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ This page describes the necessary configurations to be able to debug Weasis usin
We recommend the use of [IntelliJ IDEA](https://www.jetbrains.com/idea/) because the following instructions are based on it. Nevertheless, it is possible to use other IDEs by configuring weasis-launcher with similar instructions described in [Add a launcher](#add-a-launcher).
### Prerequisites

1. Install [IntelliJ IDEA](https://www.jetbrains.com/idea/) (Community or Ultimate Edition 2023.1 or higher)
2. Use JDK 21 or higher and set the language level to `21 Preview`.
![Project Structure](/images/conf/project-structure.png)
1. Install [IntelliJ IDEA](https://www.jetbrains.com/idea/) (Community or Ultimate Edition 2024.1 or higher)
2. Use JDK 22 or higher and set the language level to `22 - Unamed variables and patterns` in _File > Project Structure... > .
3. In _File > Settings... > Plugins_ install google-java-format plugin from Marketplace and enable it from *google-java-format Settings*

### Code style and convention
Expand Down Expand Up @@ -51,7 +50,7 @@ For running or debugging Weasis, you need to create a launcher:
- Click on *Modify Options*
- Select *Add dependencies with "Provided" scope to classpath*
- Select *Do not build before run*
- Select *Add VM Options* and enter `-Xms64m -Xmx768m -Dgosh.port=17179 --enable-preview`
- Select *Add VM Options* and enter `-Xms64m -Xmx768m -Dgosh.port=17179`
- Working Directory: remove the current value and add *%MODULE_WORKING_DIR%* from the Insert Macros button
![Launcher Configuration](/images/conf/launcher.png)
{{% notice note %}}
Expand Down
Binary file removed static/images/conf/mvn-spotless.png
Binary file not shown.

0 comments on commit 7abff9f

Please sign in to comment.