Skip to content

Commit 378ce2e

Browse files
authored
Обновление зависимостей и JDK21 (#65)
* обновление зависимостей * jdk21 * api
1 parent 2669742 commit 378ce2e

File tree

6 files changed

+18
-16
lines changed

6 files changed

+18
-16
lines changed

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
java_version: ['17', '21']
11+
java_version: ['21', '25']
1212
os: [ubuntu-latest, windows-latest, macOS-latest]
1313
steps:
1414
- uses: actions/checkout@v6

.github/workflows/publish-to-maven-central.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Set up JDK
1919
uses: actions/setup-java@v5
2020
with:
21-
java-version: 17
21+
java-version: 21
2222
distribution: 'temurin'
2323
cache: gradle
2424
- name: Deploy to Central Portal

.github/workflows/qa.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
fetch-depth: ''
1818
- run: |
1919
git fetch --prune --unshallow
20-
- name: Set up JDK 17
20+
- name: Set up JDK
2121
uses: actions/setup-java@v5
2222
with:
23-
java-version: 17
23+
java-version: 21
2424
distribution: 'adopt'
2525
- name: SonarCloud Scan
2626
run: ./gradlew check sonar

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
fetch-depth: 0
1818
- uses: actions/setup-java@v5
1919
with:
20-
java-version: 17
20+
java-version: 21
2121
distribution: 'adopt'
2222
- run: ./gradlew check --stacktrace
2323
- if: matrix.os == 'ubuntu-latest'

.github/workflows/update-gradle.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
with:
1515
fetch-depth: 0
1616
fetch-tags: true
17-
- name: Set up JDK 17
17+
- name: Set up JDK
1818
uses: actions/setup-java@v5
1919
with:
20-
java-version: 17
20+
java-version: 21
2121
distribution: 'temurin'
2222
cache: gradle
2323

build.gradle.kts

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,17 @@ gitVersioning.apply {
4848
}
4949

5050
dependencies {
51-
implementation("io.github.1c-syntax", "antlr4", "0.3.0-rc.2")
52-
implementation("commons-io", "commons-io", "2.15.1")
53-
implementation("org.junit.jupiter", "junit-jupiter-api", "5.11.4")
54-
implementation("org.assertj", "assertj-core", "3.27.0")
51+
implementation("io.github.1c-syntax:antlr4:0.3.0")
5552

56-
testImplementation("org.junit.jupiter", "junit-jupiter-engine", "5.11.4")
57-
testImplementation("org.mockito", "mockito-core", "5.21.0")
53+
implementation("commons-io:commons-io:2.21.0")
54+
api("org.junit.jupiter:junit-jupiter-api:6.0.3")
55+
api("org.assertj:assertj-core:3.27.7")
5856

59-
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.11.4")
57+
testImplementation(platform("org.junit:junit-bom:6.0.3"))
58+
testImplementation("org.mockito:mockito-core:5.21.0")
59+
60+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
61+
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
6062
}
6163

6264
tasks.withType<JavaCompile> {
@@ -65,8 +67,8 @@ tasks.withType<JavaCompile> {
6567
}
6668

6769
java {
68-
sourceCompatibility = JavaVersion.VERSION_17
69-
targetCompatibility = JavaVersion.VERSION_17
70+
sourceCompatibility = JavaVersion.VERSION_21
71+
targetCompatibility = JavaVersion.VERSION_21
7072
withSourcesJar()
7173
withJavadocJar()
7274
}

0 commit comments

Comments
 (0)