From cfd6e58ebe11059e6057c5031cb74b3260ffdbf9 Mon Sep 17 00:00:00 2001 From: Petros Paraskevopoulos Date: Fri, 28 Jun 2024 12:32:34 +0300 Subject: [PATCH] Build: Add dependency analysis plugin FYI: This commit adds a previous version of the plugin (1.28.0) and not the latest version (1.32.0). This is because the latest version gets stuck during the 'computeActualUsage' phase and increases the build time of the 'buildHealth' task by as much as five times (5x). For more info see: Stuck in computeActualUsageDebug for many minutes #1186 (https://github.com/autonomousapps/ dependency-analysis-gradle-plugin/issues/1186) --- build.gradle | 1 + settings.gradle | 2 ++ 2 files changed, 3 insertions(+) diff --git a/build.gradle b/build.gradle index 35cbeef403dd..4e6632668e9c 100644 --- a/build.gradle +++ b/build.gradle @@ -5,6 +5,7 @@ plugins { id "io.gitlab.arturbosch.detekt" id 'com.automattic.android.measure-builds' id "org.jetbrains.kotlinx.kover" + id "com.autonomousapps.dependency-analysis" id "androidx.navigation.safeargs.kotlin" apply false id "com.android.library" apply false id 'com.google.gms.google-services' apply false diff --git a/settings.gradle b/settings.gradle index 0d1018fd702f..ce16fc371913 100644 --- a/settings.gradle +++ b/settings.gradle @@ -10,6 +10,7 @@ pluginManagement { gradle.ext.violationCommentsVersion = '1.70.0' gradle.ext.measureBuildsVersion = '2.1.2' gradle.ext.koverVersion = '0.7.5' + gradle.ext.dependencyAnalysisVersion = '1.28.0' plugins { id "org.jetbrains.kotlin.android" version gradle.ext.kotlinVersion @@ -28,6 +29,7 @@ pluginManagement { id "org.jetbrains.kotlinx.kover" version gradle.ext.koverVersion id "com.google.dagger.hilt.android" version gradle.ext.daggerVersion id "com.google.devtools.ksp" version gradle.ext.kspVersion + id "com.autonomousapps.dependency-analysis" version gradle.ext.dependencyAnalysisVersion } repositories { maven {