Skip to content

Commit 4ebcc6e

Browse files
committed
Finish v0.18.0
2 parents bccd41b + cdf2019 commit 4ebcc6e

28 files changed

Lines changed: 497 additions & 183 deletions

.github/workflows/gradle.yml

Lines changed: 2 additions & 2 deletions
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
@@ -21,7 +21,7 @@ jobs:
2121
run: ./gradlew check --stacktrace
2222
- name: Archive test results
2323
if: failure()
24-
uses: actions/upload-artifact@v6
24+
uses: actions/upload-artifact@v7
2525
with:
2626
name: junit_report_${{ matrix.os }}_${{ matrix.java_version }}
2727
path: build/reports/tests/test

.github/workflows/night_build.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: 'adopt'
2424
- name: Build with Gradle
2525
run: ./gradlew build

.github/workflows/pluginTest.yml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
steps:
99
- uses: actions/checkout@v6
1010

11-
- name: Set up JDK 17
11+
- name: Set up JDK
1212
uses: actions/setup-java@v5
1313
with:
14-
java-version: '17'
15-
distribution: 'adopt'
14+
java-version: '21'
15+
distribution: 'temurin'
1616
cache: 'gradle'
1717

1818
- name: Build Plugin
@@ -36,21 +36,23 @@ jobs:
3636
curl -u admin:Sonar_Password_1 -s -X POST "http://localhost:9000/api/projects/create?name=Test&project=test-project"
3737
3838
- name: Checkout SSL 3.1
39-
uses: actions/checkout@v5
39+
uses: actions/checkout@v6
4040
with:
4141
repository: '1c-syntax/ssl_3_1'
4242
path: 'target-project'
4343

44-
- name: Run Sonar Scanner
44+
- name: Install Sonar scanner
45+
run: npm install -g sonar-scanner
46+
47+
- name: SonarQube Scan
4548
run: |
46-
docker run --rm --network="host" -v "$(pwd)/target-project:/usr/src" \
47-
sonarsource/sonar-scanner-cli \
48-
-Dsonar.projectKey=test-project \
49-
-Dsonar.sources=. \
50-
-Dsonar.host.url=http://localhost:9000 \
51-
-Dsonar.token=${{ env.SONAR_TOKEN }} \
52-
-Dsonar.lang.patterns.bsl=**/*.bsl,**/*.os \
53-
-Dsonar.scm.disabled=true
49+
sonar-scanner \
50+
-Dsonar.projectKey=test-project \
51+
-Dsonar.sources=target-project \
52+
-Dsonar.host.url=http://localhost:9000 \
53+
-Dsonar.token=${{ env.SONAR_TOKEN }} \
54+
-Dsonar.lang.patterns.bsl=**/*.bsl,**/*.os \
55+
-Dsonar.scm.disabled=true
5456
5557
- name: Server Logs on Failure
5658
if: failure()

.github/workflows/qa.yml

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

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Set up JDK
1717
uses: actions/setup-java@v5
1818
with:
19-
java-version: 17
19+
java-version: 21
2020
distribution: 'adopt'
2121
- name: Build with Gradle
2222
run: ./gradlew build

.github/workflows/update-gradle.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v6
1414

15-
- name: Set up JDK 17
15+
- name: Set up JDK 21
1616
uses: actions/setup-java@v5
1717
with:
18-
java-version: 17
18+
java-version: 21
1919
distribution: 'temurin'
2020
cache: gradle
2121

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@
2424
.idea/modules
2525
.idea/compiler.xml
2626
build/
27+
/.scannerwork/.sonar_lock

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ English version -> https://1c-syntax.github.io/sonar-bsl-plugin-community/en/
2020

2121
| Версия SonarQube | Версия плагина | Версия JAVA |
2222
|------------------|-----------------|-------------|
23-
| 25.1+ | 1.15.2+ | 17 |
24-
| 9.9+ | 1.13.0+ | 17 |
23+
| 25.4+ | 1.18.0+ | 21 |
24+
| 25.1+ | 1.15.2...1.17.2 | 17 |
25+
| 9.9+ | 1.13.0...1.17.2 | 17 |
2526
| 8.9+ | 1.11.0...1.12.0 | 11 |
2627
| 7.9+ | 0.7.0....1.10.0 | 11 |
2728
| 7.4 - 7.8 | 0.1.0....0.6.0 | 8 |

build.gradle.kts

Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ plugins {
44
jacoco
55
java
66
`maven-publish`
7-
id("org.sonarqube") version "7.2.2.6593"
7+
id("org.sonarqube") version "7.2.3.7755"
88
id("cloud.rio.license") version "0.18.0"
9-
id("com.gradleup.shadow") version "9.3.1"
9+
id("com.gradleup.shadow") version "9.4.0"
1010
id("com.github.ben-manes.versions") version "0.53.0"
1111
id("com.github.gradle-git-version-calculator") version "1.1.0"
1212
id("io.freefair.lombok") version "9.2.0"
@@ -21,39 +21,44 @@ repositories {
2121
maven("https://central.sonatype.com/repository/maven-snapshots")
2222
}
2323

24-
val sonarQubeVersion = "9.9.0.65466"
24+
val sonarQubeVersion = "25.4.0.105899"
25+
val commonmarkVersion = "0.27.1"
2526

2627
dependencies {
27-
compileOnly("org.sonarsource.api.plugin", "sonar-plugin-api", "9.14.0.375")
28+
compileOnly("org.sonarsource.api.plugin", "sonar-plugin-api", "11.3.0.2824")
2829

29-
implementation("io.github.1c-syntax", "bsl-language-server", "0.28.5") {
30+
implementation("io.github.1c-syntax", "bsl-language-server", "0.29.0") {
3031
exclude("com.contrastsecurity", "java-sarif")
3132
exclude("io.sentry", "sentry-logback")
3233
exclude("info.picocli", "picocli-spring-boot-starter")
3334
exclude("me.tongfei", "progressbar")
3435
}
35-
implementation("org.sonarsource.analyzer-commons", "sonar-analyzer-commons", "2.5.0.1358")
36+
implementation("org.sonarsource.analyzer-commons", "sonar-analyzer-commons", "2.21.0.4626")
3637

3738
// MD to HTML converter of BSL LS rule descriptions
38-
implementation("org.commonmark", "commonmark", "0.24.0")
39-
implementation("org.commonmark", "commonmark-ext-gfm-tables", "0.24.0")
40-
implementation("org.commonmark", "commonmark-ext-autolink", "0.24.0")
41-
implementation("org.commonmark", "commonmark-ext-heading-anchor", "0.24.0")
42-
43-
testImplementation("org.junit.jupiter", "junit-jupiter-api", "5.11.4")
44-
testImplementation("org.assertj", "assertj-core", "3.27.0")
45-
testImplementation("org.mockito", "mockito-core", "5.14.2")
46-
testImplementation("org.sonarsource.sonarqube", "sonar-testing-harness", sonarQubeVersion)
47-
testImplementation("org.sonarsource.sonarqube", "sonar-core", sonarQubeVersion)
39+
implementation("org.commonmark", "commonmark", commonmarkVersion)
40+
implementation("org.commonmark", "commonmark-ext-gfm-tables", commonmarkVersion)
41+
implementation("org.commonmark", "commonmark-ext-autolink", commonmarkVersion)
42+
implementation("org.commonmark", "commonmark-ext-heading-anchor", commonmarkVersion)
43+
44+
testImplementation("org.junit.jupiter", "junit-jupiter-api", "6.0.3")
45+
testImplementation("org.assertj", "assertj-core", "3.27.7")
46+
testImplementation("org.mockito", "mockito-core", "5.21.0")
47+
testImplementation("org.sonarsource.sonarqube", "sonar-testing-harness", sonarQubeVersion) {
48+
exclude("org.sonarsource.sonarqube", "sonar-sarif")
49+
}
50+
testImplementation("org.sonarsource.sonarqube", "sonar-core", sonarQubeVersion) {
51+
exclude("org.sonarsource.sonarqube", "sonar-sarif")
52+
}
4853
testImplementation("org.reflections", "reflections", "0.10.2")
4954

50-
testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine", "5.11.4")
51-
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.11.4")
55+
testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine", "6.0.3")
56+
testRuntimeOnly("org.junit.platform", "junit-platform-launcher", "6.0.3")
5257
}
5358

5459
java {
55-
sourceCompatibility = JavaVersion.VERSION_17
56-
targetCompatibility = JavaVersion.VERSION_17
60+
sourceCompatibility = JavaVersion.VERSION_21
61+
targetCompatibility = JavaVersion.VERSION_21
5762
}
5863

5964
tasks.withType<JavaCompile> {
@@ -127,7 +132,6 @@ tasks.jar {
127132
attributes["Plugin-Developers"] = "Alexey Sosnoviy, Nikita Fedkin"
128133

129134
attributes["SonarLint-Supported"] = false
130-
attributes["Sonar-Version"] = sonarQubeVersion
131135

132136
attributes["Plugin-Organization"] = "1c-syntax"
133137
attributes["Plugin-OrganizationUrl"] = "https://github.com/1c-syntax"
@@ -138,7 +142,17 @@ tasks.jar {
138142
}
139143

140144
tasks.shadowJar {
141-
mergeServiceFiles() // Критично для плагинов Sonar
145+
duplicatesStrategy = DuplicatesStrategy.INCLUDE
146+
mergeServiceFiles()
147+
transform(com.github.jengelman.gradle.plugins.shadow.transformers.AppendingTransformer::class.java) {
148+
resource.set("META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports")
149+
separator.set("\n")
150+
}
151+
transform(com.github.jengelman.gradle.plugins.shadow.transformers.PropertiesFileTransformer::class.java) {
152+
paths.set(setOf("META-INF/org/languagetool/language-module.properties"))
153+
mergeStrategy.set(com.github.jengelman.gradle.plugins.shadow.transformers.PropertiesFileTransformer.MergeStrategy.Append)
154+
mergeSeparator.set(",")
155+
}
142156
configurations = listOf(project.configurations["runtimeClasspath"])
143157
archiveClassifier.set("")
144158
}

docs/en/index.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
[Russian version](../index.md)
1313

14-
## Opportunities
14+
## Features
1515

1616
- Project "Overview" dashboard;
1717
- Highlighting the source code of 1C: Enterprise;
@@ -28,13 +28,14 @@
2828

2929
## Version matrix
3030

31-
| SonarQube Version | Plugin Version | JAVA version |
32-
|-------------------|-----------------|--------------|
33-
| 25.1+ | 1.15.2+ | 17 |
34-
| 9.9+ | 1.13.0+ | 17 |
35-
| 8.9+ | 1.11.0...1.12.0 | 11 |
36-
| 7.9+ | 0.7.0...1.10.0 | 11 |
37-
| 7.4 - 7.8 | 0.1.0...0.6.0 | 8 |
31+
| SonarQube Version | Plugin Version | JAVA version|
32+
|-------------------|----------------|-------------|
33+
| 25.4+ | 1.18.0+ | 21 |
34+
| 25.1+ | 1.15.2...1.17.2 | 17 |
35+
| 9.9+ | 1.13.0...1.17.2 | 17 |
36+
| 8.9+ | 1.11.0...1.12.0 | 11 |
37+
| 7.9+ | 0.7.0....1.10.0 | 11 |
38+
| 7.4 - 7.8 | 0.1.0....0.6.0 | 8 |
3839

3940
## Run analysis
4041

0 commit comments

Comments
 (0)