Skip to content

Commit

Permalink
Fix capability conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Mar 9, 2024
1 parent 31a7984 commit cea380f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,13 @@ checkstyle {
configDirectory = rootProject.layout.projectDirectory.dir("gradle/config/checkstyle")
}

// Workaround for https://github.com/checkstyle/checkstyle/issues/14123
configurations.checkstyle {
resolutionStrategy.capabilitiesResolution.withCapability("com.google.collections:google-collections") {
select("com.google.guava:guava:0")
}
}

tasks {
checkstyleMain {
config = resources.text.fromFile(checkstyle.configDirectory.file("checkstyleMain.xml"))
Expand Down

0 comments on commit cea380f

Please sign in to comment.