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

Обновиться до Java 22 #591

Merged
merged 3 commits into from
May 19, 2024
Merged
Show file tree
Hide file tree
Changes from all 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 .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '21'
java-version: '22'
distribution: 'liberica'
cache: maven
- name: Publish
Expand Down
2 changes: 1 addition & 1 deletion README-en.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[<img src="https://github.com/spacious-team/investbook/assets/11336712/7b16c124-5230-403e-8df9-7652132e76dd" align="right"/>](README-en.md)
[<img src="https://github.com/spacious-team/investbook/assets/11336712/14847ff5-827e-4d0f-a4e9-882cb0d1397c" align="right"/>](README.md)<br/>

[![java-version](https://img.shields.io/badge/java-21-brightgreen?style=flat-square)](https://openjdk.org/)
[![java-version](https://img.shields.io/badge/java-22-brightgreen?style=flat-square)](https://openjdk.org/)
[![spring-boot-version](https://img.shields.io/badge/spring--boot-3.2.5-brightgreen?style=flat-square)](https://github.com/spring-projects/spring-boot/releases)
[![hits-of-code](https://img.shields.io/badge/dynamic/json?style=flat-square&color=lightblue&label=hits-of-code&url=https://hitsofcode.com/github/spacious-team/investbook/json?branch=develop&query=$.count)](https://hitsofcode.com/github/spacious-team/investbook/view?branch=develop)
[![github-closed-pull-requests](https://img.shields.io/github/issues-pr-closed/spacious-team/investbook?style=flat-square&color=brightgreen)](https://github.com/spacious-team/investbook/pulls?q=is%3Apr+is%3Aclosed)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[<img src="https://github.com/spacious-team/investbook/assets/11336712/7b16c124-5230-403e-8df9-7652132e76dd" align="right"/>](README-en.md)
[<img src="https://github.com/spacious-team/investbook/assets/11336712/14847ff5-827e-4d0f-a4e9-882cb0d1397c" align="right"/>](README.md)<br/>

[![java-version](https://img.shields.io/badge/java-21-brightgreen?style=flat-square)](https://openjdk.org/)
[![java-version](https://img.shields.io/badge/java-22-brightgreen?style=flat-square)](https://openjdk.org/)
[![spring-boot-version](https://img.shields.io/badge/spring--boot-3.2.5-brightgreen?style=flat-square)](https://github.com/spring-projects/spring-boot/releases)
[![hits-of-code](https://img.shields.io/badge/dynamic/json?style=flat-square&color=lightblue&label=hits-of-code&url=https://hitsofcode.com/github/spacious-team/investbook/json?branch=develop&query=$.count)](https://hitsofcode.com/github/spacious-team/investbook/view?branch=develop)
[![github-closed-pull-requests](https://img.shields.io/github/issues-pr-closed/spacious-team/investbook?style=flat-square&color=brightgreen)](https://github.com/spacious-team/investbook/pulls?q=is%3Apr+is%3Aclosed)
Expand Down
11 changes: 6 additions & 5 deletions docs/install-on-linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
```shell script
$ java -version
```
Если версия 21 или выше, пропустите следующий пункт.
Если версия 22 или выше, пропустите следующий пункт.
2. Воспользуйтесь менеджером пакетов вашей ОС для установки java, например на Ubuntu
```shell
$ sudo apt install openjdk-21-jre-headless
$ sudo apt install openjdk-22-jre-headless
```
Или можно скачать [Java 21](https://jdk.java.net/21/) и распаковать папку `jdk-21` в директорию `/opt`.
Для 32 разрядных ОС можно скачать [Java 21 x86 JRE](https://bell-sw.com/pages/downloads/). Если java распакована из
Или можно скачать [Java 22](https://jdk.java.net/22/) и распаковать папку `jdk-22` в директорию `/opt`.
Для 32 разрядных ОС можно скачать [Java 22 x86 32](https://bell-sw.com/pages/downloads/). Если java распакована из
архива, то в директории приложения нужно найти файл `start.sh`, раскомментировать и актуализировать `JAVA_HOME`
```shell
$ export JAVA_HOME=/opt/jdk-21
$ export JAVA_HOME=/opt/jdk-22
```
3. Скачать со страницы [проекта](https://github.com/spacious-team/investbook/releases/latest) архив `.zip` и
распаковать в директорию `/opt`.
Expand Down Expand Up @@ -55,6 +55,7 @@
| с 2022.7 | java 18 и выше |
| с 2023.1 | java 20 и выше |
| с 2023.3 | java 21 и выше |
| с 2024.2 | java 22 и выше |

#### Установка расширений

Expand Down
6 changes: 3 additions & 3 deletions docs/install-on-windows-by-zip.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@

Данная инструкция поддерживает все версии Windows. Если у вас 64 битная Windows, рекомендуем устанавливать по
[инструкции](install-on-windows.md).
1. Создать папку `C:\Program Files\Java\`, скачать Java 21 под вашу версию операционной системы.
1. Создать папку `C:\Program Files\Java\`, скачать Java 22 под вашу версию операционной системы.
Если у вас 32 битная Windows можете использовать скачать по [ссылке](https://libericajdk.ru/pages/downloads/)
(достаточно JRE сборки), если 64 битная - рекомендуется скачивать сборку [OpenJdk](https://jdk.java.net/21/).
(достаточно JRE сборки), если 64 битная - рекомендуется скачивать сборку [OpenJdk](https://jdk.java.net/22/).
1. Скачать со страницы [проекта](https://github.com/vananiev/portfolio/releases/latest) архив `investbook.zip`
и распаковать в любую удобную папку. В ней открыть файл `start.bat` и изменить строчку
```
#set JAVA_HOME=C:\Program Files\Java\jdk-21
#set JAVA_HOME=C:\Program Files\Java\jdk-22
```
следующим образом:
+ Убрать первый символ `#`.
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<properties>
<!-- Valid version is (0-255).(0-255).(0-65535) -->
<win.msi.version>24.2</win.msi.version>
<java.version>21</java.version>
<java.version>22</java.version>
</properties>

<repositories>
Expand Down Expand Up @@ -427,7 +427,7 @@
<!-- Defines available bellsoft-liberica java versions from
https://github.com/paketo-buildpacks/java/releases
JRE with ${java.version} will be selected automatically when available -->
<buildpack>gcr.io/paketo-buildpacks/java:10.2.1</buildpack>
<buildpack>gcr.io/paketo-buildpacks/java:14.0.0</buildpack>
</buildpacks>
</image>
<docker>
Expand Down
2 changes: 1 addition & 1 deletion src/main/assembly/zip/start.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#

# Задать путь к распакованному архиву с Java
#set JAVA_HOME=C:\Program Files\Java\jdk-21
#set JAVA_HOME=C:\Program Files\Java\jdk-22

# Запуск приложения
chcp 65001
Expand Down
2 changes: 1 addition & 1 deletion src/main/assembly/zip/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#

# Задать путь к распакованному архиву с Java
#export JAVA_HOME=/opt/jdk-21
#export JAVA_HOME=/opt/jdk-22

[ -n "$JAVA_HOME" ] && export PATH=$JAVA_HOME/bin:$PATH
cd $(dirname $0)
Expand Down