Skip to content

[Dependency Update] Update dependency-analysis to 2.19.0#272

Merged
ParaskP7 merged 1 commit intotrunkfrom
deps/update-depepndency-analysis-to-2.19.0
Aug 11, 2025
Merged

[Dependency Update] Update dependency-analysis to 2.19.0#272
ParaskP7 merged 1 commit intotrunkfrom
deps/update-depepndency-analysis-to-2.19.0

Conversation

@ParaskP7
Copy link
Contributor

@ParaskP7 ParaskP7 commented Aug 11, 2025

Closes: AINFRA-1121


Description

This PR updates dependency-analysis to 2.19.0

FYI: After updating this project to AGP 8.12.0, as part of #269, the buildHealth command 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 buildHealth locally and make sure it completes successfully.


Post Merge Instructions

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
@ParaskP7 ParaskP7 requested a review from Copilot August 11, 2025 14:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@ParaskP7 ParaskP7 marked this pull request as ready for review August 11, 2025 14:42
@ParaskP7 ParaskP7 merged commit 1611013 into trunk Aug 11, 2025
11 checks passed
@ParaskP7 ParaskP7 deleted the deps/update-depepndency-analysis-to-2.19.0 branch August 11, 2025 14:50
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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants