Skip to content

Commit 5edb3aa

Browse files
committed
Finish 0.31.0
2 parents ed6c62a + 8202951 commit 5edb3aa

36 files changed

+755
-739
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: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
import java.util.Calendar
21
import org.jreleaser.model.Active.*
2+
import java.util.*
33

44
plugins {
55
`java-library`
66
`maven-publish`
77
jacoco
88
idea
99
antlr
10-
id("org.cadixdev.licenser") version "0.6.1"
10+
id("cloud.rio.license") version "0.18.0"
1111
id("me.qoomon.git-versioning") version "6.4.4"
1212
id("io.freefair.javadoc-links") version "9.2.0"
1313
id("io.freefair.javadoc-utf-8") version "9.2.0"
1414
id("io.freefair.lombok") version "9.2.0"
15-
id("io.freefair.maven-central.validate-poms") version "9.2.0"
15+
// id("io.freefair.maven-central.validate-poms") version "9.2.0"
1616
id("com.github.ben-manes.versions") version "0.53.0"
1717
id("ru.vyarus.pom") version "3.0.0"
1818
id("org.jreleaser") version "1.21.0"
1919
id("org.sonarqube") version "7.2.2.6593"
20-
id("me.champeau.gradle.jmh") version "0.5.3"
20+
id("me.champeau.jmh") version "0.7.3"
2121
}
2222

2323
repositories {
@@ -50,23 +50,26 @@ gitVersioning.apply {
5050
}
5151

5252
dependencies {
53-
antlr("io.github.1c-syntax", "antlr4", "0.2.0")
54-
55-
// stat analysis
56-
compileOnly("com.github.spotbugs", "spotbugs-annotations", "4.8.6")
53+
antlr("io.github.1c-syntax:antlr4:0.3.0")
5754

5855
// testing
59-
testImplementation("io.github.1c-syntax", "bsl-parser-testing", "0.4.0")
56+
testImplementation("io.github.1c-syntax:bsl-parser-testing:0.5.0") {
57+
exclude("org.antlr:antlr-runtime")
58+
exclude("org.antlr:ST4")
59+
}
60+
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")
6065

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")
66+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
67+
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
6568
}
6669

6770
java {
68-
sourceCompatibility = JavaVersion.VERSION_17
69-
targetCompatibility = JavaVersion.VERSION_17
71+
sourceCompatibility = JavaVersion.VERSION_21
72+
targetCompatibility = JavaVersion.VERSION_21
7073
withSourcesJar()
7174
withJavadocJar()
7275
}
@@ -118,7 +121,7 @@ idea {
118121

119122
jmh {
120123
jvmArgsAppend = listOf("-XX:+UseParallelGC")
121-
isIncludeTests = true
124+
includeTests.set(true)
122125
duplicateClassesStrategy = DuplicatesStrategy.WARN
123126
timeUnit = "s"
124127
}
@@ -134,12 +137,12 @@ tasks.generateGrammarSource {
134137
outputDirectory = file("src/main/gen/com/github/_1c_syntax/bsl/parser")
135138
}
136139

137-
tasks.updateLicenseMain {
140+
tasks.licenseFormatMain {
138141
mustRunAfter(tasks.generateGrammarSource)
139142
}
140143

141-
tasks.checkLicenseMain {
142-
dependsOn(tasks.updateLicenseMain)
144+
tasks.licenseMain {
145+
dependsOn(tasks.licenseFormatMain)
143146
}
144147

145148
tasks.test {
@@ -173,18 +176,16 @@ tasks.javadoc {
173176
}
174177

175178
license {
176-
header(rootProject.file("license/HEADER.txt"))
177-
newLine(false)
179+
header = rootProject.file("license/HEADER.txt")
180+
skipExistingHeaders = false
181+
strictCheck = true
182+
mapping("java", "SLASHSTAR_STYLE")
178183
ext["year"] = "2018-" + Calendar.getInstance().get(Calendar.YEAR)
179184
ext["name"] =
180-
"Alexey Sosnoviy <labotamy@gmail.com>, Nikita Fedkin <nixel2007@gmail.com>, Sergey Batanov <sergey.batanov@dmpas.ru>"
185+
"Alexey Sosnoviy <labotamy@gmail.com>, Nikita Fedkin <nixel2007@gmail.com>, " +
186+
"Sergey Batanov <sergey.batanov@dmpas.ru>"
181187
ext["project"] = "BSL Parser"
182-
exclude("**/*.tokens")
183-
exclude("**/*.interp")
184-
exclude("**/*.g4")
185-
exclude("**/*.bsl")
186-
exclude("**/*.orig")
187-
exclude("**/*.gitkeep")
188+
include("**/*.java")
188189
}
189190

190191
tasks.clean {
@@ -201,7 +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", "${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+
)
205209
}
206210
}
207211

0 commit comments

Comments
 (0)