Skip to content

Commit

Permalink
chore: ignore version conflicts for spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
christopher-cudennec committed Jan 8, 2024
1 parent f779a88 commit c05f744
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,13 @@ configure(subprojects.findAll { !javaPlatformModules.contains(it.name) }) {
useJUnitPlatform()
}

configurations.all {
resolutionStrategy {
// fail eagerly on version conflict (includes transitive dependencies)
// e.g. multiple different versions of the same dependency (group and name are equal)
failOnVersionConflict()
configurations.configureEach {
if (it.name.startsWith("spotless")) {
// Workaround for https://github.com/diffplug/spotless/issues/1965.
} else {
it.resolutionStrategy {
failOnVersionConflict()
}
}
}
}
Expand Down

0 comments on commit c05f744

Please sign in to comment.