@@ -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"
1010 id(" io.freefair.lombok" ) version " 9.2.0"
1111 id(" io.freefair.javadoc-links" ) version " 9.2.0"
1212 id(" io.freefair.javadoc-utf-8" ) version " 9.2.0"
13- id(" io.freefair.maven-central.validate-poms" ) 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"
@@ -48,24 +48,25 @@ gitVersioning.apply {
4848
4949dependencies {
5050
51- implementation(" org.apache.commons" , " commons-collections4" , " 4.4 " )
52- implementation(" io.github.1c-syntax" , " utils" , " 0.6.3" )
51+ implementation(" org.apache.commons: commons-collections4:4.5.0 " )
52+ implementation(" io.github.1c-syntax: utils: 0.6.3" )
5353
5454 // логирование
55- implementation(" org.slf4j" , " slf4j-api" , " 2.0.16 " )
55+ implementation(" org.slf4j: slf4j-api: 2.0.17 " )
5656
57- implementation(" org.jspecify" , " jspecify" , " 1.0.0" )
57+ implementation(" org.jspecify: jspecify: 1.0.0" )
5858
5959 // логирование
60- testImplementation(" org.slf4j" , " slf4j-reload4j" , " 2.0.16 " )
60+ testImplementation(" org.slf4j: slf4j-reload4j: 2.0.17 " )
6161
6262 // тестирование
63- testImplementation(platform(" org.junit:junit-bom:5.11.4" ))
64- testImplementation(" org.junit.jupiter" , " junit-jupiter-api" )
65- testImplementation(" org.junit.jupiter" , " junit-jupiter-params" )
66- testImplementation(" org.assertj" , " assertj-core" , " 3.27.0" )
67- testImplementation(" com.ginsberg" , " junit5-system-exit" , " 2.0.2" )
68- testRuntimeOnly(" org.junit.jupiter" , " junit-jupiter-engine" )
63+ testImplementation(platform(" org.junit:junit-bom:6.0.3" ))
64+ testImplementation(" org.junit.jupiter:junit-jupiter-api" )
65+ testImplementation(" org.junit.jupiter:junit-jupiter-params" )
66+ testImplementation(" org.assertj:assertj-core:3.27.7" )
67+ testImplementation(" com.ginsberg:junit5-system-exit:2.0.2" )
68+ testRuntimeOnly(" org.junit.jupiter:junit-jupiter-engine" )
69+ testRuntimeOnly(" org.junit.platform:junit-platform-launcher" )
6970}
7071
7172java {
@@ -125,13 +126,14 @@ artifacts {
125126}
126127
127128license {
128- header(rootProject.file(" license/HEADER.txt" ))
129- newLine(false )
129+ header = rootProject.file(" license/HEADER.txt" )
130+ skipExistingHeaders = false
131+ strictCheck = true
132+ mapping(" java" , " SLASHSTAR_STYLE" )
130133 ext[" year" ] = " 2021 - " + Calendar .getInstance().get(Calendar .YEAR )
131134 ext[" name" ] = " Tymko Oleg <olegtymko@yandex.ru>, Maximov Valery <maximovvalery@gmail.com>"
132135 ext[" project" ] = " BSL Common library"
133- exclude(" **/*.properties" )
134- exclude(" **/*.orig" )
136+ include(" **/*.java" )
135137}
136138
137139publishing {
@@ -197,7 +199,8 @@ tasks.register("precommit") {
197199 description = " Run all precommit tasks"
198200 group = " Developer tools"
199201 dependsOn(" :test" )
200- dependsOn(" :updateLicenses" )
202+ dependsOn(" :licenseFormatMain" )
203+ dependsOn(" :licenseFormatTest" )
201204}
202205
203206tasks.withType<Javadoc > {
0 commit comments