Skip to content

Commit 0304471

Browse files
authored
Обновления (#123)
* лицензии и обвноления зависимостей * null check jspecify
1 parent f4c2599 commit 0304471

File tree

14 files changed

+44
-42
lines changed

14 files changed

+44
-42
lines changed

build.gradle.kts

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ plugins {
55
`java-library`
66
`maven-publish`
77
jacoco
8-
id("org.cadixdev.licenser") version "0.6.1"
8+
id("cloud.rio.license") version "0.18.0"
99
id("me.qoomon.git-versioning") version "6.4.4"
10-
id("io.freefair.lombok") version "9.1.0"
11-
id("io.freefair.javadoc-links") version "9.1.0"
12-
id("io.freefair.javadoc-utf-8") version "9.1.0"
13-
id("io.freefair.maven-central.validate-poms") version "9.1.0"
10+
id("io.freefair.lombok") version "9.2.0"
11+
id("io.freefair.javadoc-links") version "9.2.0"
12+
id("io.freefair.javadoc-utf-8") version "9.2.0"
13+
// id("io.freefair.maven-central.validate-poms") version "9.2.0"
1414
id("com.github.ben-manes.versions") version "0.53.0"
1515
id("ru.vyarus.pom") version "3.0.0"
1616
id("org.jreleaser") version "1.21.0"
@@ -49,19 +49,24 @@ repositories {
4949

5050
dependencies {
5151
// логирование
52-
implementation("org.slf4j", "slf4j-api", "2.1.0-alpha1")
52+
implementation("org.slf4j:slf4j-api:2.1.0-alpha1")
5353

5454
// прочее
55-
implementation("commons-io", "commons-io", "2.18.0")
56-
api("io.github.1c-syntax", "bsl-common-library", "0.9.0")
55+
implementation("commons-io:commons-io:2.21.0")
56+
implementation("io.github.1c-syntax:bsl-common-library:0.9.0")
57+
58+
api("org.jspecify:jspecify:1.0.0")
5759

5860
// тестирование
59-
testImplementation("org.junit.jupiter", "junit-jupiter-api", "5.11.4")
60-
testImplementation("org.junit.jupiter", "junit-jupiter-engine", "5.11.4")
61-
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.assertj:assertj-core:3.27.7")
6264

6365
// логирование
64-
testImplementation("org.slf4j", "slf4j-reload4j", "2.1.0-alpha1")
66+
testImplementation("org.slf4j:slf4j-reload4j:2.1.0-alpha1")
67+
68+
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
69+
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
6570
}
6671

6772
java {
@@ -107,7 +112,8 @@ sonarqube {
107112
property("sonar.organization", "1c-syntax")
108113
property("sonar.projectKey", "1c-syntax_supportconf")
109114
property("sonar.projectName", "Support Configuration")
110-
property("sonar.coverage.jacoco.xmlReportPaths", "${layout.buildDirectory.get()}/reports/jacoco/test/jacoco.xml")
115+
property("sonar.coverage.jacoco.xmlReportPaths",
116+
"${layout.buildDirectory.get()}/reports/jacoco/test/jacoco.xml")
111117
}
112118
}
113119

@@ -118,14 +124,14 @@ artifacts {
118124
}
119125

120126
license {
121-
header(rootProject.file("license/HEADER.txt"))
122-
newLine(false)
127+
header = rootProject.file("license/HEADER.txt")
128+
skipExistingHeaders = false
129+
strictCheck = true
130+
mapping("java", "SLASHSTAR_STYLE")
123131
ext["year"] = "2019 - " + Calendar.getInstance().get(Calendar.YEAR)
124132
ext["name"] = "Tymko Oleg <olegtymko@yandex.ru>, Maximov Valery <maximovvalery@gmail.com>"
125133
ext["project"] = "Support Configuration"
126-
exclude("**/*.properties")
127-
exclude("**/*.orig")
128-
exclude("**/*.xml")
134+
include("**/*.java")
129135
}
130136

131137
publishing {
@@ -190,7 +196,8 @@ tasks.register("precommit") {
190196
description = "Run all precommit tasks"
191197
group = "Developer tools"
192198
dependsOn(":test")
193-
dependsOn(":updateLicenses")
199+
dependsOn(":licenseFormatMain")
200+
dependsOn(":licenseFormatTest")
194201
}
195202

196203
tasks.withType<Javadoc> {

gradle/wrapper/gradle-wrapper.jar

2.35 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/com/github/_1c_syntax/bsl/supconf/FullSupportData.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is a part of Support Configuration.
33
*
4-
* Copyright (c) 2019 - 2025
4+
* Copyright (c) 2019 - 2026
55
* Tymko Oleg <olegtymko@yandex.ru>, Maximov Valery <maximovvalery@gmail.com> and contributors
66
*
77
* SPDX-License-Identifier: LGPL-3.0-or-later
@@ -52,7 +52,8 @@ private FullSupportData(Path pathParentConfigurationBin) {
5252
this(pathParentConfigurationBin, Collections.emptyMap());
5353
}
5454

55-
private FullSupportData(Path pathParentConfigurationBin, Map<String, Map<SupportConfiguration, SupportVariant>> supportVariants) {
55+
private FullSupportData(Path pathParentConfigurationBin,
56+
Map<String, Map<SupportConfiguration, SupportVariant>> supportVariants) {
5657
this.supportVariants = supportVariants;
5758
this.pathParentConfigurationBin = pathParentConfigurationBin;
5859
}

src/main/java/com/github/_1c_syntax/bsl/supconf/GeneralSupportVariant.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 Support Configuration.
33
*
4-
* Copyright (c) 2019 - 2025
4+
* Copyright (c) 2019 - 2026
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/supconf/ParseSupportData.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 Support Configuration.
33
*
4-
* Copyright (c) 2019 - 2025
4+
* Copyright (c) 2019 - 2026
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/supconf/SupportConfiguration.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 Support Configuration.
33
*
4-
* Copyright (c) 2019 - 2025
4+
* Copyright (c) 2019 - 2026
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/supconf/SupportData.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 Support Configuration.
33
*
4-
* Copyright (c) 2019 - 2025
4+
* Copyright (c) 2019 - 2026
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)