Skip to content

Commit

Permalink
fix(deps): update dependency com.puppycrawl.tools:checkstyle to v10.1…
Browse files Browse the repository at this point in the history
…2.7 (#7902)

* fix(deps): update dependency com.puppycrawl.tools:checkstyle to v10.12.7

* Fix dependency resolution error

```
Could not determine the dependencies of task ':iceberg-views:checkstyleIntTest'.
> Could not resolve all task dependencies for configuration ':iceberg-views:checkstyle'.
   > Could not resolve com.google.guava:guava:33.0.0-jre.
     Required by:
         project :iceberg-views > com.puppycrawl.tools:checkstyle:10.12.7
      > Module 'com.google.guava:guava' has been rejected:
           Cannot select module with conflict on capability 'com.google.collections:google-collections:33.0.0-jre' also provided by [com.google.collections:google-collections:1.0(runtime)]
   > Could not resolve com.google.collections:google-collections:1.0.
     Required by:
         project :iceberg-views > com.puppycrawl.tools:checkstyle:10.12.7 > org.apache.maven.doxia:doxia-core:1.12.0 > org.codehaus.plexus:plexus-container-default:2.1.0
      > Module 'com.google.collections:google-collections' has been rejected:
           Cannot select module with conflict on capability 'com.google.collections:google-collections:1.0' also provided by [com.google.guava:guava:33.0.0-jre(jreRuntimeElements)]
```

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Robert Stupp <[email protected]>
  • Loading branch information
renovate[bot] and snazy authored Jan 4, 2024
1 parent d7f709e commit 9fa1f3e
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions build-logic/src/main/kotlin/nessie-common-src.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,24 @@ if (project.name.endsWith("-proto") || project.extra.has("duplicated-project-sou
isIgnoreFailures = false
}

configurations.configureEach {
// Avoids dependency resolution error:
// Could not resolve all task dependencies for configuration '...:checkstyle'.
// > Module 'com.google.guava:guava' has been rejected:
// Cannot select module with conflict on capability
// 'com.google.collections:google-collections:33.0.0-jre'
// also provided by [com.google.collections:google-collections:1.0(runtime)]
// > Module 'com.google.collections:google-collections' has been rejected:
// Cannot select module with conflict on capability
// 'com.google.collections:google-collections:1.0'
// also provided by [com.google.guava:guava:33.0.0-jre(jreRuntimeElements)]
resolutionStrategy.capabilitiesResolution.withCapability(
"com.google.collections:google-collections"
) {
selectHighestVersion()
}
}

tasks.withType<Checkstyle>().configureEach {
if (plugins.hasPlugin("io.quarkus")) {
when (name) {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[versions]
antlr4 = "4.13.1"
bouncycastle = "1.70"
checkstyle = "10.12.5"
checkstyle = "10.12.7"
errorprone = "2.24.1"
errorproneSlf4j = "0.1.22"
gatling = "3.10.3"
Expand Down

0 comments on commit 9fa1f3e

Please sign in to comment.