Skip to content

Commit 8202951

Browse files
authored
Обновление зависимостей и JDK21 (#359)
* обновление зависимостей * jdk 21 minor fixes * deps * GA
1 parent 8c863ab commit 8202951

File tree

20 files changed

+215
-194
lines changed

20 files changed

+215
-194
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/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Setup JDK
2626
uses: actions/setup-java@v5
2727
with:
28-
java-version: 17
28+
java-version: 21
2929
distribution: 'adopt'
3030

3131
- name: Build javadoc

.github/workflows/javadoc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- name: Set up JDK
1414
uses: actions/setup-java@v5
1515
with:
16-
java-version: 17
16+
java-version: 21
1717
distribution: 'adopt'
1818
- name: Check javadoc build
1919
run: ./gradlew javadoc --stacktrace

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

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

.github/workflows/qa.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
persist-credentials: false
1919
- run: |
2020
git fetch --prune --unshallow
21-
- name: Set up JDK 17
21+
- name: Set up JDK
2222
uses: actions/setup-java@v5
2323
with:
24-
java-version: 17
24+
java-version: 21
2525
distribution: 'adopt'
2626
- name: SonarCloud Scan
2727
run: ./gradlew check sonar

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
persist-credentials: false
1919
- uses: actions/setup-java@v5
2020
with:
21-
java-version: 17
21+
java-version: 21
2222
distribution: 'adopt'
2323
- run: ./gradlew check --stacktrace
2424
- if: matrix.os == 'ubuntu-latest'

.github/workflows/update-gradle.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
fetch-tags: true
1717
persist-credentials: false
1818

19-
- name: Set up JDK 17
19+
- name: Set up JDK
2020
uses: actions/setup-java@v5
2121
with:
22-
java-version: 17
22+
java-version: 21
2323
distribution: 'temurin'
2424
cache: gradle
2525

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,4 @@ gen/
7171
*.tokens
7272
/.idea/inspectionProfiles/Project_Default.xml
7373
/.idea/material_theme_project_new.xml
74+
/.idea/compiler.xml

.idea/compiler.xml

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle.kts

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import java.util.Calendar
21
import org.jreleaser.model.Active.*
2+
import java.util.*
33

44
plugins {
55
`java-library`
@@ -50,25 +50,26 @@ gitVersioning.apply {
5050
}
5151

5252
dependencies {
53-
antlr("io.github.1c-syntax", "antlr4", "0.3.0-rc.2") {
53+
antlr("io.github.1c-syntax:antlr4:0.3.0")
54+
55+
// testing
56+
testImplementation("io.github.1c-syntax:bsl-parser-testing:0.5.0") {
5457
exclude("org.antlr:antlr-runtime")
5558
exclude("org.antlr:ST4")
5659
}
5760

58-
// testing
59-
testImplementation("io.github.1c-syntax", "bsl-parser-testing", "0.5.0-rc.1")
60-
61-
testImplementation("org.junit.jupiter", "junit-jupiter-api", "5.11.4")
62-
testImplementation("org.junit.jupiter", "junit-jupiter-engine", "5.11.4")
63-
testImplementation("org.junit.jupiter", "junit-jupiter-params", "5.11.4")
64-
testImplementation("org.assertj", "assertj-core", "3.27.0")
61+
testImplementation(platform("org.junit:junit-bom:6.0.3"))
62+
testImplementation("org.junit.jupiter:junit-jupiter-api")
63+
testImplementation("org.junit.jupiter:junit-jupiter-params")
64+
testImplementation("org.assertj:assertj-core:3.27.7")
6565

66+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
6667
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
6768
}
6869

6970
java {
70-
sourceCompatibility = JavaVersion.VERSION_17
71-
targetCompatibility = JavaVersion.VERSION_17
71+
sourceCompatibility = JavaVersion.VERSION_21
72+
targetCompatibility = JavaVersion.VERSION_21
7273
withSourcesJar()
7374
withJavadocJar()
7475
}
@@ -201,8 +202,10 @@ sonar {
201202
property("sonar.projectKey", "1c-syntax_bsl-parser")
202203
property("sonar.projectName", "BSL Parser")
203204
property("sonar.scm.exclusions.disabled", "true")
204-
property("sonar.coverage.jacoco.xmlReportPaths",
205-
"${layout.buildDirectory.get()}/reports/jacoco/test/jacoco.xml")
205+
property(
206+
"sonar.coverage.jacoco.xmlReportPaths",
207+
"${layout.buildDirectory.get()}/reports/jacoco/test/jacoco.xml"
208+
)
206209
}
207210
}
208211

0 commit comments

Comments
 (0)