Skip to content

Commit 09cea29

Browse files
sshishiginСтепан
and
Степан
authored
Обновление версии checkstyle (Java21 compatability issue, CI fails) (polis-vk#53)
* checkstyle version compatible with Java 21 string template syntax * workaround for gradle bug * workaround for gradle bug without spring dependency management plugin --------- Co-authored-by: Степан <[email protected]>
1 parent 76c5425 commit 09cea29

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: build.gradle

+7-1
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,20 @@ java {
1010
targetCompatibility = JavaVersion.VERSION_21
1111
}
1212

13+
configurations.checkstyle {
14+
resolutionStrategy.capabilitiesResolution.withCapability("com.google.collections:google-collections") {
15+
select("com.google.guava:guava:0")
16+
}
17+
}
18+
1319
repositories {
1420
mavenCentral()
1521
}
1622

1723
dependencies {
1824
// Checks
1925
errorprone 'com.google.errorprone:error_prone_core:2.15.0'
20-
checkstyle 'com.puppycrawl.tools:checkstyle:10.3.3'
26+
checkstyle 'com.puppycrawl.tools:checkstyle:10.13.0'
2127

2228
// Errorprone annotations for solve with warnings
2329
implementation group: 'com.google.errorprone', name: 'error_prone_annotations', version: '2.15.0'

0 commit comments

Comments
 (0)