Skip to content

Commit 2669742

Browse files
authored
обновление копирайта и зависимостей (#62)
* обновление копирайта и зависимостей * fixes * sq fixes
1 parent 23e7d7d commit 2669742

File tree

18 files changed

+102
-52
lines changed

18 files changed

+102
-52
lines changed

build.gradle.kts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,16 @@ plugins {
66
`maven-publish`
77
jacoco
88
idea
9-
id("org.cadixdev.licenser") version "0.6.1"
9+
id("cloud.rio.license") version "0.18.0"
1010
id("me.qoomon.git-versioning") version "6.4.4"
11-
id("io.freefair.lombok") version "9.1.0"
12-
id("io.freefair.javadoc-links") version "9.1.0"
13-
id("io.freefair.javadoc-utf-8") version "9.1.0"
14-
id("io.freefair.maven-central.validate-poms") version "9.1.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.lombok") version "9.2.0"
14+
// id("io.freefair.maven-central.validate-poms") version "9.2.0"
1515
id("com.github.ben-manes.versions") version "0.53.0"
1616
id("ru.vyarus.pom") version "3.0.0"
1717
id("org.jreleaser") version "1.21.0"
1818
id("org.sonarqube") version "7.2.2.6593"
19-
id("me.champeau.jmh") version "0.7.3"
2019
}
2120

2221
repositories {
@@ -49,13 +48,15 @@ gitVersioning.apply {
4948
}
5049

5150
dependencies {
52-
implementation("io.github.1c-syntax", "antlr4", "0.2.0")
51+
implementation("io.github.1c-syntax", "antlr4", "0.3.0-rc.2")
5352
implementation("commons-io", "commons-io", "2.15.1")
5453
implementation("org.junit.jupiter", "junit-jupiter-api", "5.11.4")
5554
implementation("org.assertj", "assertj-core", "3.27.0")
5655

5756
testImplementation("org.junit.jupiter", "junit-jupiter-engine", "5.11.4")
58-
testImplementation("org.mockito", "mockito-core", "5.8.0")
57+
testImplementation("org.mockito", "mockito-core", "5.21.0")
58+
59+
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.11.4")
5960
}
6061

6162
tasks.withType<JavaCompile> {
@@ -70,10 +71,6 @@ java {
7071
withJavadocJar()
7172
}
7273

73-
tasks.withType<JavaCompile> {
74-
options.encoding = "UTF-8"
75-
}
76-
7774
tasks.test {
7875
useJUnitPlatform()
7976

@@ -98,11 +95,14 @@ tasks.jacocoTestReport {
9895
}
9996

10097
license {
101-
header(rootProject.file("license/HEADER.txt"))
102-
newLine(false)
98+
header = rootProject.file("license/HEADER.txt")
99+
skipExistingHeaders = false
100+
strictCheck = true
101+
mapping("java", "SLASHSTAR_STYLE")
103102
ext["year"] = "2023-" + Calendar.getInstance().get(Calendar.YEAR)
104103
ext["name"] = "Valery Maximov <maximovvalery@gmail.com>"
105104
ext["project"] = "BSL Parser Testing"
105+
include("**/*.java")
106106
}
107107

108108
sonar {

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

100644100755
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/parser/testing/LexerAsserts.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 BSL Parser Testing.
33
*
4-
* Copyright (c) 2023-2025
4+
* Copyright (c) 2023-2026
55
* 1c-syntax team and Valery Maximov <maximovvalery@gmail.com>
66
*
77
* SPDX-License-Identifier: LGPL-3.0-or-later

src/main/java/com/github/_1c_syntax/bsl/parser/testing/ParserAsserts.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is a part of BSL Parser Testing.
33
*
4-
* Copyright (c) 2023-2025
4+
* Copyright (c) 2023-2026
55
* 1c-syntax team and Valery Maximov <maximovvalery@gmail.com>
66
*
77
* SPDX-License-Identifier: LGPL-3.0-or-later
@@ -79,7 +79,7 @@ public ParserAsserts matches(ParseTree tree) throws RecognitionException {
7979
}
8080

8181
if (ctx.parent == null) {
82-
boolean parseSuccess = testParser.getLexerClazz().cast(parser.getInputStream().getTokenSource())._hitEOF;
82+
boolean parseSuccess = testParser.getLexerClazz().cast(parser.getInputStream().getTokenSource()).isHitEOF();
8383
if (!parseSuccess) {
8484
throw new RecognitionException(
8585
"Parse error EOF don't hit\n" + parser.getInputStream().getText(),

src/main/java/com/github/_1c_syntax/bsl/parser/testing/ResourceUtils.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 BSL Parser Testing.
33
*
4-
* Copyright (c) 2023-2025
4+
* Copyright (c) 2023-2026
55
* 1c-syntax team and Valery Maximov <maximovvalery@gmail.com>
66
*
77
* SPDX-License-Identifier: LGPL-3.0-or-later

src/main/java/com/github/_1c_syntax/bsl/parser/testing/TestLexer.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 BSL Parser Testing.
33
*
4-
* Copyright (c) 2023-2025
4+
* Copyright (c) 2023-2026
55
* 1c-syntax team and Valery Maximov <maximovvalery@gmail.com>
66
*
77
* SPDX-License-Identifier: LGPL-3.0-or-later

src/main/java/com/github/_1c_syntax/bsl/parser/testing/TestParser.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 BSL Parser Testing.
33
*
4-
* Copyright (c) 2023-2025
4+
* Copyright (c) 2023-2026
55
* 1c-syntax team and Valery Maximov <maximovvalery@gmail.com>
66
*
77
* SPDX-License-Identifier: LGPL-3.0-or-later

0 commit comments

Comments
 (0)