Skip to content

Commit ecf6925

Browse files
authored
Merge pull request #487 from 1c-syntax/feature/bumpAndFix250102
Небольшие правки и обновление зависимостей
2 parents 7a00c68 + 12ccbc6 commit ecf6925

File tree

493 files changed

+11632
-6974
lines changed

Some content is hidden

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

493 files changed

+11632
-6974
lines changed

.github/workflows/check.yml

Lines changed: 24 additions & 10 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', '20']
11+
java_version: ['17', '21']
1212
os: [ubuntu-latest, windows-latest, macOS-latest]
1313
include:
1414
- os: windows-latest
@@ -29,13 +29,27 @@ jobs:
2929
distribution: 'liberica'
3030
- name: Build with Gradle
3131
run: ./gradlew check --stacktrace
32-
- name: Archive test results
33-
if: always() && matrix.prefix == 'nix'
34-
uses: EnricoMi/publish-unit-test-result-action@v2
32+
- name: Upload Test Results
33+
if: always()
34+
uses: actions/upload-artifact@v4
3535
with:
36-
junit_files: "**/test-results/test/**/*.xml"
37-
- name: Archive test results
38-
if: always() && matrix.prefix != 'nix'
39-
uses: EnricoMi/publish-unit-test-result-action/composite@v2
40-
with:
41-
junit_files: "**/test-results/test/**/*.xml"
36+
name: Test Results (Java ${{ matrix.java_version }}.${{ matrix.os }})
37+
path: "**/test-results/test/**/*.xml"
38+
publish-test-results:
39+
needs: build
40+
runs-on: ubuntu-latest
41+
permissions:
42+
checks: write
43+
pull-requests: write
44+
contents: read
45+
issues: read
46+
if: always()
47+
steps:
48+
- name: Download Artifacts
49+
uses: actions/download-artifact@v4
50+
with:
51+
path: artifacts
52+
- name: Publish Test Results
53+
uses: EnricoMi/publish-unit-test-result-action@v2
54+
with:
55+
junit_files: "artifacts/**/*.xml"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ Gradle_*.xml
1616
/.idea/material_theme_project_new.xml
1717
*.hprof
1818
*.hprof.idom
19+
*.cf
20+
**/ConfigDumpInfo.xml

build.gradle.kts

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -39,43 +39,40 @@ val isSnapshot = gitVersioning.gitVersionDetails.refType != GitRefType.TAG
3939
repositories {
4040
mavenLocal()
4141
mavenCentral()
42-
maven(url = "https://jitpack.io")
4342
maven(url = "https://s01.oss.sonatype.org/content/repositories/snapshots/")
4443
}
4544

4645
dependencies {
4746

4847
implementation("org.apache.commons", "commons-collections4", "4.4")
4948

50-
// https://mvnrepository.com/artifact/com.thoughtworks.xstream/xstream
51-
implementation("com.thoughtworks.xstream", "xstream", "1.4.20")
49+
implementation("com.thoughtworks.xstream", "xstream", "1.4.21")
5250

5351
// логирование
5452
implementation("org.slf4j", "slf4j-api", "2.1.0-alpha1")
5553

5654
// прочее
57-
implementation("commons-io", "commons-io", "2.8.0")
58-
implementation("io.github.1c-syntax", "utils", "0.6.1")
59-
implementation("io.github.1c-syntax", "bsl-common-library", "0.7.0")
60-
implementation("io.github.1c-syntax", "supportconf", "0.14.0") {
55+
implementation("commons-io", "commons-io", "2.18.0")
56+
implementation("io.github.1c-syntax", "utils", "0.6.2")
57+
implementation("io.github.1c-syntax", "bsl-common-library", "0.8.0-rc.1")
58+
implementation("io.github.1c-syntax", "supportconf", "0.14.1") {
6159
exclude("io.github.1c-syntax", "bsl-common-library")
6260
}
6361

6462
// быстрый поиск классов
65-
implementation("io.github.classgraph", "classgraph", "4.8.147")
63+
implementation("io.github.classgraph", "classgraph", "4.8.179")
6664

6765
// тестирование
68-
testImplementation("org.junit.jupiter", "junit-jupiter-api", "5.7.0")
69-
testImplementation("org.junit.jupiter", "junit-jupiter-engine", "5.7.0")
70-
testImplementation("org.junit.jupiter", "junit-jupiter-params", "5.7.0")
71-
testImplementation("org.assertj", "assertj-core", "3.18.1")
72-
testImplementation("com.ginsberg", "junit5-system-exit", "1.0.0")
73-
testImplementation("org.skyscreamer", "jsonassert", "1.5.0")
74-
testImplementation("org.objenesis", "objenesis", "3.2")
66+
testImplementation("org.junit.jupiter", "junit-jupiter-api", "5.11.4")
67+
testImplementation("org.junit.jupiter", "junit-jupiter-engine", "5.11.4")
68+
testImplementation("org.junit.jupiter", "junit-jupiter-params", "5.11.4")
69+
testImplementation("org.assertj", "assertj-core", "3.27.0")
70+
testImplementation("com.ginsberg", "junit5-system-exit", "2.0.2")
71+
testImplementation("org.skyscreamer", "jsonassert", "1.5.3")
72+
testImplementation("org.objenesis", "objenesis", "3.4")
7573

7674
// логирование
77-
// https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12
78-
testImplementation("org.slf4j", "slf4j-log4j12", "2.1.0-alpha1")
75+
testImplementation("org.slf4j", "slf4j-reload4j", "2.1.0-alpha1")
7976
}
8077

8178
java {

src/main/java/com/github/_1c_syntax/bsl/mdclasses/CF.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is a part of MDClasses.
33
*
4-
* Copyright (c) 2019 - 2024
4+
* Copyright (c) 2019 - 2025
55
* Tymko Oleg <olegtymko@yandex.ru>, Maximov Valery <maximovvalery@gmail.com> and contributors
66
*
77
* SPDX-License-Identifier: LGPL-3.0-or-later
@@ -27,6 +27,7 @@
2727
import com.github._1c_syntax.bsl.mdo.ModuleOwner;
2828
import com.github._1c_syntax.bsl.mdo.Subsystem;
2929
import com.github._1c_syntax.bsl.mdo.support.ApplicationRunMode;
30+
import com.github._1c_syntax.bsl.mdo.support.InterfaceCompatibilityMode;
3031
import com.github._1c_syntax.bsl.mdo.support.ScriptVariant;
3132
import com.github._1c_syntax.bsl.mdo.support.UsePurposes;
3233
import com.github._1c_syntax.bsl.support.CompatibilityMode;
@@ -51,6 +52,11 @@ public interface CF extends MDClass, ConfigurationTree, CFAccess {
5152
*/
5253
ScriptVariant getScriptVariant();
5354

55+
/**
56+
* Вид интерфейса
57+
*/
58+
InterfaceCompatibilityMode getInterfaceCompatibilityMode();
59+
5460
/**
5561
* Режим совместимости
5662
*/

src/main/java/com/github/_1c_syntax/bsl/mdclasses/CFAccess.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is a part of MDClasses.
33
*
4-
* Copyright (c) 2019 - 2024
4+
* Copyright (c) 2019 - 2025
55
* Tymko Oleg <olegtymko@yandex.ru>, Maximov Valery <maximovvalery@gmail.com> and contributors
66
*
77
* SPDX-License-Identifier: LGPL-3.0-or-later

src/main/java/com/github/_1c_syntax/bsl/mdclasses/Configuration.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is a part of MDClasses.
33
*
4-
* Copyright (c) 2019 - 2024
4+
* Copyright (c) 2019 - 2025
55
* Tymko Oleg <olegtymko@yandex.ru>, Maximov Valery <maximovvalery@gmail.com> and contributors
66
*
77
* SPDX-License-Identifier: LGPL-3.0-or-later
@@ -57,6 +57,7 @@
5757
import com.github._1c_syntax.bsl.mdo.Language;
5858
import com.github._1c_syntax.bsl.mdo.MD;
5959
import com.github._1c_syntax.bsl.mdo.Module;
60+
import com.github._1c_syntax.bsl.mdo.PaletteColor;
6061
import com.github._1c_syntax.bsl.mdo.Report;
6162
import com.github._1c_syntax.bsl.mdo.Role;
6263
import com.github._1c_syntax.bsl.mdo.ScheduledJob;
@@ -72,6 +73,7 @@
7273
import com.github._1c_syntax.bsl.mdo.XDTOPackage;
7374
import com.github._1c_syntax.bsl.mdo.support.ApplicationRunMode;
7475
import com.github._1c_syntax.bsl.mdo.support.DataLockControlMode;
76+
import com.github._1c_syntax.bsl.mdo.support.InterfaceCompatibilityMode;
7577
import com.github._1c_syntax.bsl.mdo.support.MultiLanguageString;
7678
import com.github._1c_syntax.bsl.mdo.support.ObjectBelonging;
7779
import com.github._1c_syntax.bsl.mdo.support.RoleRight;
@@ -88,7 +90,6 @@
8890
import lombok.Builder;
8991
import lombok.Builder.Default;
9092
import lombok.EqualsAndHashCode;
91-
import lombok.NonNull;
9293
import lombok.Singular;
9394
import lombok.ToString;
9495
import lombok.Value;
@@ -105,7 +106,6 @@
105106
@Builder
106107
@ToString(of = {"name", "uuid"})
107108
@EqualsAndHashCode(of = {"name", "uuid"})
108-
@NonNull
109109
public class Configuration implements CF {
110110

111111
/**
@@ -140,6 +140,8 @@ public class Configuration implements CF {
140140
@Default
141141
ScriptVariant scriptVariant = ScriptVariant.ENGLISH;
142142
@Default
143+
InterfaceCompatibilityMode interfaceCompatibilityMode = InterfaceCompatibilityMode.VERSION_8_2;
144+
@Default
143145
CompatibilityMode compatibilityMode = new CompatibilityMode();
144146
@Default
145147
CompatibilityMode configurationExtensionCompatibilityMode = new CompatibilityMode();
@@ -208,6 +210,8 @@ public class Configuration implements CF {
208210
@Singular
209211
List<StyleItem> styleItems;
210212
@Singular
213+
List<PaletteColor> paletteColors;
214+
@Singular
211215
List<Style> styles;
212216
@Singular
213217
List<Language> languages;

src/main/java/com/github/_1c_syntax/bsl/mdclasses/ConfigurationExtension.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is a part of MDClasses.
33
*
4-
* Copyright (c) 2019 - 2024
4+
* Copyright (c) 2019 - 2025
55
* Tymko Oleg <olegtymko@yandex.ru>, Maximov Valery <maximovvalery@gmail.com> and contributors
66
*
77
* SPDX-License-Identifier: LGPL-3.0-or-later
@@ -57,6 +57,7 @@
5757
import com.github._1c_syntax.bsl.mdo.Language;
5858
import com.github._1c_syntax.bsl.mdo.MD;
5959
import com.github._1c_syntax.bsl.mdo.Module;
60+
import com.github._1c_syntax.bsl.mdo.PaletteColor;
6061
import com.github._1c_syntax.bsl.mdo.Report;
6162
import com.github._1c_syntax.bsl.mdo.Role;
6263
import com.github._1c_syntax.bsl.mdo.ScheduledJob;
@@ -72,6 +73,7 @@
7273
import com.github._1c_syntax.bsl.mdo.XDTOPackage;
7374
import com.github._1c_syntax.bsl.mdo.support.ApplicationRunMode;
7475
import com.github._1c_syntax.bsl.mdo.support.ConfigurationExtensionPurpose;
76+
import com.github._1c_syntax.bsl.mdo.support.InterfaceCompatibilityMode;
7577
import com.github._1c_syntax.bsl.mdo.support.MultiLanguageString;
7678
import com.github._1c_syntax.bsl.mdo.support.ObjectBelonging;
7779
import com.github._1c_syntax.bsl.mdo.support.RoleRight;
@@ -131,6 +133,8 @@ public class ConfigurationExtension implements CF {
131133
@Default
132134
ScriptVariant scriptVariant = ScriptVariant.ENGLISH;
133135
@Default
136+
InterfaceCompatibilityMode interfaceCompatibilityMode = InterfaceCompatibilityMode.VERSION_8_2;
137+
@Default
134138
CompatibilityMode compatibilityMode = new CompatibilityMode();
135139
@Default
136140
CompatibilityMode configurationExtensionCompatibilityMode = new CompatibilityMode();
@@ -199,6 +203,8 @@ public class ConfigurationExtension implements CF {
199203
@Singular
200204
List<StyleItem> styleItems;
201205
@Singular
206+
List<PaletteColor> paletteColors;
207+
@Singular
202208
List<Style> styles;
203209
@Singular
204210
List<Language> languages;

src/main/java/com/github/_1c_syntax/bsl/mdclasses/ConfigurationTree.java

Lines changed: 35 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
/*
2-
* This file is a part of MDClasses.
3-
*
4-
* Copyright (c) 2019 - 2024
5-
* Tymko Oleg <olegtymko@yandex.ru>, Maximov Valery <maximovvalery@gmail.com> and contributors
6-
*
7-
* SPDX-License-Identifier: LGPL-3.0-or-later
8-
*
9-
* MDClasses is free software; you can redistribute it and/or
10-
* modify it under the terms of the GNU Lesser General Public
11-
* License as published by the Free Software Foundation; either
12-
* version 3.0 of the License, or (at your option) any later version.
13-
*
14-
* MDClasses is distributed in the hope that it will be useful,
15-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17-
* Lesser General Public License for more details.
18-
*
19-
* You should have received a copy of the GNU Lesser General Public
20-
* License along with MDClasses.
21-
*/
22-
package com.github._1c_syntax.bsl.mdclasses;
1+
/*
2+
* This file is a part of MDClasses.
3+
*
4+
* Copyright (c) 2019 - 2025
5+
* Tymko Oleg <olegtymko@yandex.ru>, Maximov Valery <maximovvalery@gmail.com> and contributors
6+
*
7+
* SPDX-License-Identifier: LGPL-3.0-or-later
8+
*
9+
* MDClasses is free software; you can redistribute it and/or
10+
* modify it under the terms of the GNU Lesser General Public
11+
* License as published by the Free Software Foundation; either
12+
* version 3.0 of the License, or (at your option) any later version.
13+
*
14+
* MDClasses is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17+
* Lesser General Public License for more details.
18+
*
19+
* You should have received a copy of the GNU Lesser General Public
20+
* License along with MDClasses.
21+
*/
22+
package com.github._1c_syntax.bsl.mdclasses;
2323

2424
import com.github._1c_syntax.bsl.mdo.AccountingRegister;
2525
import com.github._1c_syntax.bsl.mdo.AccumulationRegister;
@@ -55,6 +55,7 @@
5555
import com.github._1c_syntax.bsl.mdo.IntegrationService;
5656
import com.github._1c_syntax.bsl.mdo.Interface;
5757
import com.github._1c_syntax.bsl.mdo.Language;
58+
import com.github._1c_syntax.bsl.mdo.PaletteColor;
5859
import com.github._1c_syntax.bsl.mdo.Report;
5960
import com.github._1c_syntax.bsl.mdo.Role;
6061
import com.github._1c_syntax.bsl.mdo.ScheduledJob;
@@ -400,6 +401,18 @@ default Optional<StyleItem> findStyleItem(Predicate<? super StyleItem> predicate
400401
return getStyleItems().stream().filter(predicate).findFirst();
401402
}
402403

404+
/**
405+
* Цвет палитры
406+
*/
407+
List<PaletteColor> getPaletteColors();
408+
409+
/**
410+
* Поиск элемента стиля по условию
411+
*/
412+
default Optional<PaletteColor> findPaletteColor(Predicate<? super PaletteColor> predicate) {
413+
return getPaletteColors().stream().filter(predicate).findFirst();
414+
}
415+
403416
/**
404417
* Стили
405418
*/

src/main/java/com/github/_1c_syntax/bsl/mdclasses/ExternalDataProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is a part of MDClasses.
33
*
4-
* Copyright (c) 2019 - 2024
4+
* Copyright (c) 2019 - 2025
55
* Tymko Oleg <olegtymko@yandex.ru>, Maximov Valery <maximovvalery@gmail.com> and contributors
66
*
77
* SPDX-License-Identifier: LGPL-3.0-or-later

src/main/java/com/github/_1c_syntax/bsl/mdclasses/ExternalReport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is a part of MDClasses.
33
*
4-
* Copyright (c) 2019 - 2024
4+
* Copyright (c) 2019 - 2025
55
* Tymko Oleg <olegtymko@yandex.ru>, Maximov Valery <maximovvalery@gmail.com> and contributors
66
*
77
* SPDX-License-Identifier: LGPL-3.0-or-later

0 commit comments

Comments
 (0)