diff --git a/build.gradle b/build.gradle index cdf27fdec..69343e9ce 100644 --- a/build.gradle +++ b/build.gradle @@ -168,6 +168,13 @@ dependencyAnalysis { // We explicitly want to pull in these dependencies transitively from AC exclude('org.mozilla.appservices.nightly:fxaclient', 'org.mozilla.geckoview:geckoview-nightly-omni') } + onDuplicateClassWarnings { + // Android R classes are duplicated by design between :app and its library + // dependencies, so they're not a real classpath conflict. Filter them out + // rather than disabling duplicate-class detection entirely. + // https://github.com/autonomousapps/dependency-analysis-gradle-plugin/issues/1335 + excludeRegex('.*[./]R(\\$.*)?') + } } } } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 2ee90f0c6..0c68c0129 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -42,7 +42,7 @@ androidx-test-uiautomator = "2.4.0-beta02" # Third Party Linting & Static Code Analysis androidx-lint = "1.0.0-rc01" -dependency-analysis = "3.10.0" +dependency-analysis = "3.14.0" detekt = "1.23.8" jspecify = "1.0.0" ktlint = "1.8.0"