Skip to content

Commit

Permalink
# Релиз 0.20.4
Browse files Browse the repository at this point in the history
# Прочие изменения

+ Обновлен Gradle до версии 7.4
+ Обновлены зависимости
+ Изменено имя группы библиотеки на "io.github.1c-syntax"
  • Loading branch information
theshadowco committed Feb 20, 2022
2 parents 8473af6 + 9d61f48 commit c514ca3
Show file tree
Hide file tree
Showing 38 changed files with 74 additions and 77 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
java_version: ['11', '16']
java_version: ['11', '17']
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/[email protected]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ jobs:
- name: Setup JDK
uses: actions/setup-java@v2
with:
java-version: 16
java-version: 17
distribution: 'adopt'

- name: Build javadoc
run: ./gradlew --no-daemon javadoc

- name: Set up Python
uses: actions/[email protected].1
uses: actions/[email protected].2
with:
python-version: '3.6'
architecture: 'x64'
Expand Down
75 changes: 36 additions & 39 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import java.net.URI
import java.util.*

plugins {
Expand All @@ -7,58 +6,58 @@ plugins {
jacoco
`java-library`
antlr
id("com.github.hierynomus.license") version "0.16.1"
id("org.sonarqube") version "3.3"
id("org.cadixdev.licenser") version "0.6.1"
id("com.github.gradle-git-version-calculator") version "1.1.0"
id("com.github.ben-manes.versions") version "0.40.0"
id("io.freefair.lombok") version "6.4.1"
id("io.freefair.javadoc-links") version "6.4.1"
id("io.freefair.javadoc-utf-8") version "6.4.1"
id("com.github.ben-manes.versions") version "0.42.0"
id("me.champeau.gradle.jmh") version "0.5.3"
id("io.freefair.javadoc-links") version "6.3.0"
id("io.freefair.javadoc-utf-8") version "6.3.0"
}

repositories {
mavenLocal()
mavenCentral()
maven { url = URI("https://jitpack.io") }
maven(url = "https://jitpack.io")
}

group = "com.github.1c-syntax"
group = "io.github.1c-syntax"
version = gitVersionCalculator.calculateVersion("v")

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withSourcesJar()
withJavadocJar()
}

tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}

val antlrVersion = "4.9.0"
val antlrGroupId = "com.tunnelvisionlabs"
val antlrArtifactId = "antlr4"
val junitVersion = "5.6.0-RC1"

dependencies {
implementation(antlrGroupId, antlrArtifactId, antlrVersion)
antlr(antlrGroupId, antlrArtifactId, antlrVersion)

implementation("com.github.1c-syntax", "utils", "0.2.1")
implementation("com.github.1c-syntax", "utils", "0.3.4")

// https://mvnrepository.com/artifact/commons-beanutils/commons-beanutils
implementation("commons-beanutils", "commons-beanutils", "1.9.4")

testImplementation("org.junit.jupiter", "junit-jupiter-api", junitVersion)
testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine", junitVersion)
testImplementation("org.junit.jupiter", "junit-jupiter-api", "5.6.1")
testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine", "5.6.1")
testImplementation("org.assertj", "assertj-core", "3.14.0")

// https://mvnrepository.com/artifact/commons-io/commons-io
implementation("commons-io", "commons-io", "2.6")

// stat analysis
compileOnly("com.google.code.findbugs", "jsr305", "3.0.2")
}

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withSourcesJar()
withJavadocJar()
}

tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}

sourceSets {
Expand Down Expand Up @@ -102,30 +101,30 @@ jmh {

tasks.generateGrammarSource {
arguments = listOf(
"-visitor",
"-package",
"com.github._1c_syntax.bsl.parser",
"-encoding",
"utf8"
"-visitor",
"-package",
"com.github._1c_syntax.bsl.parser",
"-encoding",
"utf8"
)
outputDirectory = file("src/main/gen/com/github/_1c_syntax/bsl/parser")
}

tasks.generateGrammarSource {
doLast {
tasks.licenseFormatMain.get().actions[0].execute(tasks.licenseFormatMain.get())
tasks.updateLicenseMain.get().actions[0].execute(tasks.updateLicenseMain.get())
}
}

tasks.test {
useJUnitPlatform()

testLogging {
events("passed", "skipped", "failed")
events("passed", "skipped", "failed", "standard_error")
}

reports {
html.isEnabled = true
html.required.set(true)
}
}

Expand All @@ -135,33 +134,31 @@ tasks.check {

tasks.jacocoTestReport {
reports {
xml.isEnabled = true
xml.destination = File("$buildDir/reports/jacoco/test/jacoco.xml")
xml.required.set(true)
xml.outputLocation.set(File("$buildDir/reports/jacoco/test/jacoco.xml"))
}
}

tasks.javadoc {
options {
this as StandardJavadocDocletOptions
links(
"https://javadoc.io/doc/org.antlr/antlr4-runtime/latest"
)
links("https://javadoc.io/doc/org.antlr/antlr4-runtime/latest")
}
}

license {
header = rootProject.file("license/HEADER.txt")
header(rootProject.file("license/HEADER.txt"))
newLine(false)
ext["year"] = "2018-" + Calendar.getInstance().get(Calendar.YEAR)
ext["name"] = "Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>"
ext["name"] =
"Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>"
ext["project"] = "BSL Parser"
exclude("**/*.tokens")
exclude("**/*.interp")
exclude("**/*.g4")
exclude("**/*.bsl")
exclude("**/*.orig")
exclude("**/*.gitkeep")
strictCheck = true
mapping("java", "SLASHSTAR_STYLE")
}

tasks.clean {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion license/HEADER.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
This file is a part of ${project}.

Copyright © ${year}
Copyright (c) ${year}
${name}

SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright © 2018-2022
* Copyright (c) 2018-2022
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright © 2018-2022
* Copyright (c) 2018-2022
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright © 2018-2022
* Copyright (c) 2018-2022
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright © 2018-2022
* Copyright (c) 2018-2022
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright © 2018-2022
* Copyright (c) 2018-2022
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright © 2018-2022
* Copyright (c) 2018-2022
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright © 2018-2022
* Copyright (c) 2018-2022
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright © 2018-2022
* Copyright (c) 2018-2022
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright © 2018-2022
* Copyright (c) 2018-2022
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright © 2018-2022
* Copyright (c) 2018-2022
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright © 2018-2022
* Copyright (c) 2018-2022
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright © 2018-2022
* Copyright (c) 2018-2022
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright © 2018-2022
* Copyright (c) 2018-2022
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright © 2018-2022
* Copyright (c) 2018-2022
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright © 2018-2022
* Copyright (c) 2018-2022
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright © 2018-2022
* Copyright (c) 2018-2022
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright © 2018-2022
* Copyright (c) 2018-2022
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright © 2018-2022
* Copyright (c) 2018-2022
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright © 2018-2022
* Copyright (c) 2018-2022
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright © 2018-2022
* Copyright (c) 2018-2022
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* This file is a part of BSL Parser.
*
* Copyright © 2018-2022
* Copyright (c) 2018-2022
* Alexey Sosnoviy <[email protected]>, Nikita Fedkin <[email protected]>, Sergey Batanov <[email protected]>
*
* SPDX-License-Identifier: LGPL-3.0-or-later
Expand Down
Loading

0 comments on commit c514ca3

Please sign in to comment.