[Dependency Update] Update dependency-analysis to 2.19.0#272
Merged
Conversation
Release Notes: https://github.com/autonomousapps/ dependency-analysis-gradle-plugin/blob/main/CHANGELOG.md#version-2190 FYI: After updating this project to AGP 8.12.0, as part of PR#269, the 'buildHealth' command stopped working (see scheduled build failure), most probably because it is now incompatible with this version of AGP. Updating the pluging to its latest stable version fixed this problem. - PR#269: Enable isAttachAnrThreadDump and isStartProfilerOnAppStart options. Update dependencies. #269 - Scheduled Build Failure: https://buildkite .com/automattic/automattic-tracks-android/builds/470/steps/canvas? sid=01989148-2e5b-42de-9a9f-b1224471bd21#01989148-2f7d-4407-939f- 3f7e5714d708/197-221
There was a problem hiding this comment.
Pull Request Overview
This PR updates the dependency-analysis Gradle plugin from version 1.33.0 to 2.19.0 to fix compatibility issues with Android Gradle Plugin 8.12.0. The update restores functionality to the buildHealth command that was broken after the AGP upgrade.
Key changes:
- Updated dependency-analysis plugin version in settings.gradle
- Added the plugin to individual module build files to maintain compatibility
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| settings.gradle | Updates the dependency-analysis plugin version from 1.33.0 to 2.19.0 |
| sampletracksapp/build.gradle | Adds dependency-analysis plugin to sample app module |
| experimentation/build.gradle | Adds dependency-analysis plugin to experimentation module |
| crashlogging/build.gradle | Adds dependency-analysis plugin to crashlogging module |
| benchmark/build.gradle.kts | Adds dependency-analysis plugin to benchmark module |
| AutomatticTracks/build.gradle | Adds dependency-analysis plugin to main tracks module |
wzieba
approved these changes
Aug 11, 2025
ParaskP7
added a commit
that referenced
this pull request
Aug 22, 2025
FYI: After updating the 'dependency-analysis' plugin to '2.19.0', as part of #272, this plugin started working better than before ('1.33.0') and thus created this new advise that was previously ignored, since indeed there is no 'import androidx.annotation.*' import on this 'crashlogging' module. PS: The only such one 'import androidx.annotation.*' import exist on the 'AutomatticTracks' module, because it (seems) that it is the only module that is still using Java classes. PR: #272 ------------------------------------------------------------------------ This removal was suggested by the dependency analysis report, see below: Advice for :crashlogging Unused dependencies which should be removed: implementation 'androidx.annotation:annotation:1.7.0'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes: AINFRA-1121
Description
This PR updates
dependency-analysisto 2.19.0FYI: After updating this project to AGP 8.12.0, as part of #269, the
buildHealthcommand stopped working (see scheduled build failure), most probably because it is now incompatible with this version of AGP. Updating the plugin to its latest stable version fixed this problem.Testing Instruction
Run
buildHealthlocally and make sure it completes successfully.Post Merge Instructions
Trigger schedules/dependency-analysis.yml manually via this-> DoneNew Buildbutton to run theDependency Analysisjob again.