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

@ -38,23 +38,24 @@ if (schema_version != USE_LOCAL || nomulus_version != USE_LOCAL) {
def testUberJarName = ''
// Might need to add this back if we re-add nebula-lint
// gradleLint.ignore('unused-dependency') {
dependencies {
gradleLint.ignore('unused-dependency') {
if (schema_version == USE_LOCAL) {
testRuntimeOnly project(path: ':db', configuration: 'schema')
} else {
testRuntimeOnly "google.registry:schema:${schema_version}"
}
if (nomulus_version == USE_LOCAL) {
testRuntimeOnly project(path: ':core', configuration: 'nomulus_test')
testUberJarName = 'nomulus-tests-alldeps.jar'
} else {
testRuntimeOnly "google.registry:nomulus_test:${nomulus_version}:public"
testRuntimeOnly "google.registry:nomulus_test:${nomulus_version}:alldeps"
testUberJarName = "nomulus_test-${nomulus_version}-alldeps.jar"
}
if (schema_version == USE_LOCAL) {
testRuntimeOnly project(path: ':db', configuration: 'schema')
} else {
testRuntimeOnly "google.registry:schema:${schema_version}"
}
if (nomulus_version == USE_LOCAL) {
testRuntimeOnly project(path: ':core', configuration: 'nomulus_test')
testUberJarName = 'nomulus-tests-alldeps.jar'
} else {
testRuntimeOnly "google.registry:nomulus_test:${nomulus_version}:public"
testRuntimeOnly "google.registry:nomulus_test:${nomulus_version}:alldeps"
testUberJarName = "nomulus_test-${nomulus_version}-alldeps.jar"
}
}
// }
configurations.testRuntimeOnly.transitive = false