@@ -73,66 +73,64 @@ tasks.named("check").configure {
7373}
7474
7575dependencies {
76- compileOnly ' org .slf4j:slf4j-api:2.0.17 '
77- testCommonImplementation ' org .slf4j:slf4j-api:2.0.17 '
76+ compileOnly libs . slf4j. api
77+ testCommonImplementation libs . slf4j. api
7878
7979 // zero runtime reqs is a hard requirements for spotless-lib
8080 // if you need a dep, put it in lib-extra
81- testCommonImplementation " org .junit.jupiter:junit-jupiter: $V ER_JUNIT "
82- testCommonImplementation " org .assertj:assertj- core: $V ER_ASSERTJ "
83- testCommonImplementation " com.diffplug. durian:durian- testlib: $V ER_DURIAN "
81+ testCommonImplementation libs . junit. jupiter
82+ testCommonImplementation libs . assertj. core
83+ testCommonImplementation libs . durian. testlib
8484 testCommonImplementation projects. testlib
8585 testCommonRuntimeOnly " org.junit.platform:junit-platform-launcher"
8686
8787 // GLUE CODE (alphabetic order please)
8888 // cleanthat
89- String VER_CLEANTHAT = ' 2.24'
90- cleanthatCompileOnly " io.github.solven-eu.cleanthat:java:$VER_CLEANTHAT "
91- compatCleanthat2Dot1CompileAndTestOnly " io.github.solven-eu.cleanthat:java:$VER_CLEANTHAT "
89+ cleanthatCompileOnly libs. cleanthat. java
90+ compatCleanthat2Dot1CompileAndTestOnly libs. cleanthat. java
9291 // diktat old supported version 1.x
93- compatDiktat1Dot2Dot5CompileOnly " org.cqfn. diktat:diktat-rules:1.2.5 "
92+ compatDiktat1Dot2Dot5CompileOnly libs . diktat. rules
9493 // diktat latest supported version 2.x
95- compatDiktat2Dot0Dot0CompileOnly " com.saveourtool. diktat:diktat-runner:2.0.0 "
94+ compatDiktat2Dot0Dot0CompileOnly libs . diktat. runner
9695 // flexmark
97- flexmarkCompileOnly ' com.vladsch. flexmark:flexmark-all:0.64.8 '
96+ flexmarkCompileOnly libs . flexmark. all
9897 // gherkin
99- gherkinCompileOnly ' io.cucumber: gherkin-utils:10.0.0 '
100- gherkinCompileOnly ' org .slf4j:slf4j-api:2.0.17 '
98+ gherkinCompileOnly libs . gherkin. utils
99+ gherkinCompileOnly libs . slf4j. api
101100 // googleJavaFormat
102- googleJavaFormatCompileOnly ' com .google.googlejavaformat:google- java-format:1.28.0 '
101+ googleJavaFormatCompileOnly libs . google. java. format
103102 // gson
104- gsonCompileOnly ' com.google.code. gson:gson:2.13.2 '
103+ gsonCompileOnly libs . gson
105104 // jackson
106- String VER_JACKSON = ' 2.20.1'
107- jacksonCompileOnly " com.fasterxml.jackson.core:jackson-databind:$VER_JACKSON "
108- jacksonCompileOnly " com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:$VER_JACKSON "
105+ jacksonCompileOnly libs. jackson. databind
106+ jacksonCompileOnly libs. jackson. dataformat. yaml
109107 // javaParser
110- javaParserCompileOnly " com.github. javaparser:javaparser- symbol- solver-core:3.27.1 "
108+ javaParserCompileOnly libs . javaparser. symbol. solver. core
111109 // ktfmt
112- ktfmtCompileOnly " com.facebook: ktfmt:0.61 "
110+ ktfmtCompileOnly libs . ktfmt
113111 ktfmtCompileOnly(" com.google.googlejavaformat:google-java-format" ) {
114112 version {
115113 strictly ' 1.7' // for JDK 8 compatibility
116114 }
117115 }
118- ktfmtCompileOnly " com.google.code.findbugs: jsr305: ${ VER_JSR_305 } "
116+ ktfmtCompileOnly libs . jsr305
119117 // ktlint latest supported version
120- compatKtLint1Dot0Dot0CompileAndTestOnly ' com.pinterest. ktlint:ktlint- rule-engine:1.8.0 '
121- compatKtLint1Dot0Dot0CompileAndTestOnly ' com.pinterest. ktlint:ktlint- ruleset-standard:1.8.0 '
122- compatKtLint1Dot0Dot0CompileAndTestOnly ' org .slf4j:slf4j-api:2.0.17 '
118+ compatKtLint1Dot0Dot0CompileAndTestOnly libs . ktlint. rule. engine
119+ compatKtLint1Dot0Dot0CompileAndTestOnly libs . ktlint. ruleset. standard
120+ compatKtLint1Dot0Dot0CompileAndTestOnly libs . slf4j. api
123121 // palantirJavaFormat
124- palantirJavaFormatCompileOnly ' com .palantir.javaformat:palantir- java-format:1.1.0 ' // this version needs to stay compilable against Java 8 for CI Job testNpm
122+ palantirJavaFormatCompileOnly libs . palantir. java. format // this version needs to stay compilable against Java 8 for CI Job testNpm
125123 // scalafmt
126- scalafmtCompileOnly " org.scalameta: scalafmt-core_2.13:3.8.1 "
124+ scalafmtCompileOnly libs . scalafmt. core
127125 // sortPom
128- sortPomCompileOnly ' com.github.ekryd. sortpom:sortpom-sorter:4.0.0 '
129- sortPomCompileOnly ' org .slf4j:slf4j-api:2.0.17 '
126+ sortPomCompileOnly libs . sortpom. sorter
127+ sortPomCompileOnly libs . slf4j. api
130128 // tableTestFormatter (Java 21+ only)
131129 if (JavaVersion . current() >= JavaVersion . VERSION_21 ) {
132- tableTestFormatterCompileOnly ' org .tabletest:tabletest- formatter-core:1.0.1 '
130+ tableTestFormatterCompileOnly libs . tabletest. formatter. core
133131 }
134132 // zjsonPatch
135- zjsonPatchCompileOnly ' com.flipkart. zjsonpatch:zjsonpatch:0.4.16 '
133+ zjsonPatchCompileOnly libs . zjsonpatch
136134}
137135
138136// we'll hold the core lib to a high standard
0 commit comments