Update Gradle to 8.2.1 (#2087)

This includes removing (hopefully temporarily) the gradle-lint plugin as
it is incompatible with various Gradle versions (see
https://github.com/nebula-plugins/gradle-lint-plugin/issues/393). This
is somewhat unfortunate since the plugin is useful for removing unused
dependencies, though with the relatively small amount of Gradle code we
write hopefully it will not be missed much. If Nebula changes their
code to be compatible with Gradle 8+, we can re-add it easily.

This upgrade means we can remove the code added in 342051e1.
This commit is contained in:
gbrodman 2023-07-27 12:59:42 -04:00 committed by GitHub
parent f5839777d1
commit 4aa1bd0856
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 2822 additions and 2935 deletions

View file

@ -70,27 +70,6 @@ configurations {
}
}
// Custom resolution strategy to get around tricky dependency issues.
configurations.all {
// jackson-core is a transitive dependency that we cannot explicity specify
// versions for, without triggering linter alerts. Even though the lockfiles
// lock it to a lower version, Gradle will first try to resolve the
// dependency tree based on what is available in the Maven repo before
// applying any dependency locks. The newer version (v2.15) of jackson-core
// results in a build failure for pre-7.6 Gradle versions during that stage.
// This custom resolution strategy will modify the dependency tree as it was
// being built and prevent Gradle from even trying v2.15.
// See: https://github.com/FasterXML/jackson-core/issues/955
// TODO: Remove the custom stragegy after we upgrade to Gradle 7.6+.
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
if (details.requested.group == 'com.fasterxml.jackson.core'
&& details.requested.name == 'jackson-core'
&& details.requested.version.startsWith('2.15')) {
details.useVersion '2.14.2'
}
}
}
dependencies {
// compatibility with Java 8
errorprone("com.google.errorprone:error_prone_core:2.3.4")