Skip to content

Commit c8bbff6

Browse files
committed
Migrate to Java 21 and Spring Boot 3.3
1 parent 4509862 commit c8bbff6

File tree

104 files changed

+196
-187
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+196
-187
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
version: 2
3+
updates:
4+
- package-ecosystem: "gradle"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
ignore:
9+
- dependency-name: "kotlin"
10+
versions: [ "2.x" ]
11+
commit-message:
12+
prefix: "[deps]"

.github/workflows/build.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,16 @@ jobs:
55
name: Build
66
runs-on: ubuntu-latest
77
steps:
8-
- uses: actions/checkout@v3
8+
- uses: actions/checkout@v4
99

10-
- uses: actions/setup-java@v3
10+
- uses: actions/setup-java@v4
1111
with:
1212
distribution: "corretto"
13-
java-version: "17"
13+
java-version: "21"
1414
cache: "gradle"
1515

16-
- name: Build project
17-
uses: eskatos/gradle-command-action@v1
18-
with:
19-
dependencies-cache-enabled: true
20-
arguments: clean build
16+
- name: Validate
17+
uses: pre-commit/action@v3.0.0
2118

22-
- name: Test Report
23-
uses: mikepenz/action-junit-report@v2
24-
if: always()
25-
with:
26-
report_paths: "**/build/test-results/test/TEST-*.xml"
19+
- name: Build project
20+
run: ./gradlew clean build

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
out/
66
bin/
77
build/
8-
generated/
8+
generated/

.pre-commit-config.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v4.5.0
5+
hooks:
6+
- id: trailing-whitespace
7+
- id: end-of-file-fixer
8+
- id: fix-byte-order-marker
9+
- id: mixed-line-ending
10+
- id: check-merge-conflict
11+
- id: check-case-conflict
12+
13+
- repo: https://github.com/Lucas-C/pre-commit-hooks
14+
rev: v1.5.4
15+
hooks:
16+
- id: remove-crlf
17+
- id: remove-tabs

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# Протоколы обмена информацией
2-
31
[![Build project](https://github.com/Romanow/web-protocols/actions/workflows/build.yml/badge.svg?branch=master)](https://github.com/Romanow/web-protocols/actions/workflows/build.yml)
2+
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
3+
4+
# Протоколы обмена информацией
45

56
## Сборка и запуск
67

@@ -106,4 +107,4 @@ $ ./gradlew soap-server:bootRun
106107

107108
```shell
108109
$ java -jar soap-client/build/libs/soap-client.jar
109-
```
110+
```

_config.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
title: Протоколы обмена информацией
2+
description: Примеры реализации основных протоколов REST, SOAP, gRPC, GraphQL
3+
author:
4+
name: Romanow
5+
email: romanowalex@mail.ru
6+
7+
show_downloads: false
8+
remote_theme: jekyll/minima
9+
header_pages: ['']
10+
11+
minima:
12+
skin: classic
13+
social_links:
14+
- { platform: linkedin, user_url: "https://www.linkedin.com/company/it-enduro" }
15+
- { platform: telegram, user_url: "https://t.me/romanowalex" }
16+
- { platform: youtube, user_url: "https://www.youtube.com/@it_enduro" }

api/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ dependencies {
1111

1212
noArg {
1313
annotation "ru.romanow.protocols.api.model.NoArgConstructor"
14-
}
14+
}

api/src/main/java/ru/romanow/protocols/api/model/CreateServerRequest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ data class CreateServerRequest(
2727
@field:XmlElement
2828
@NotNull(message = "{field.not.null}")
2929
val state: StateInfo? = null
30-
)
30+
)

api/src/main/java/ru/romanow/protocols/api/model/ErrorDescription.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ import jakarta.xml.bind.annotation.XmlElement
88
data class ErrorDescription(
99
@field:XmlElement val field: String,
1010
@field:XmlElement val error: String
11-
)
11+
)

api/src/main/java/ru/romanow/protocols/api/model/ErrorResponse.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ import jakarta.xml.bind.annotation.XmlElement
77
@JacksonXmlRootElement(localName = "error")
88
data class ErrorResponse(
99
@field:XmlElement val message: String? = null
10-
)
10+
)

0 commit comments

Comments
 (0)