From 35443aa883e8220dbf198bcda42b204baa6e5640 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 31 May 2024 10:21:43 +0000 Subject: [PATCH 1/3] Update plugin com.automattic.android.measure-builds to v3 --- settings.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.gradle b/settings.gradle index 0d1018fd702f..e38bcd52e645 100644 --- a/settings.gradle +++ b/settings.gradle @@ -8,7 +8,7 @@ pluginManagement { gradle.ext.daggerVersion = "2.50" gradle.ext.detektVersion = '1.23.0' gradle.ext.violationCommentsVersion = '1.70.0' - gradle.ext.measureBuildsVersion = '2.1.2' + gradle.ext.measureBuildsVersion = '3.0.0' gradle.ext.koverVersion = '0.7.5' plugins { From bd107a7dee4a3904cac05071b09bde1d7ff84feb Mon Sep 17 00:00:00 2001 From: Wojtek Zieba Date: Wed, 10 Jul 2024 09:48:02 +0200 Subject: [PATCH 2/3] Update measure-builds configuration to match v3 API --- build.gradle | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index f52c31d4b871..bd6798e399a4 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,5 @@ -import com.automattic.android.measure.MeasureBuildsExtension +import com.automattic.android.measure.reporters.InternalA8cCiReporter +import com.automattic.android.measure.reporters.SlowSlowTasksMetricsReporter import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { @@ -119,8 +120,14 @@ ext { measureBuilds { enable = findProperty('measureBuildsEnabled')?.toBoolean() ?: false - automatticProject = MeasureBuildsExtension.AutomatticProject.WordPress - authToken = findProperty('appsMetricsToken') + onBuildMetricsReadyListener { report -> + SlowSlowTasksMetricsReporter.report(report) + InternalA8cCiReporter.reportBlocking( + report, + "wordpress", + findProperty('appsMetricsToken') + ) + } attachGradleScanId = System.getenv('CI')?.toBoolean() ?: false } From 81a1e3b9386f4c459e3c7bf85d7bd67316eef071 Mon Sep 17 00:00:00 2001 From: Wojtek Zieba Date: Wed, 10 Jul 2024 10:01:56 +0200 Subject: [PATCH 3/3] Bump measure-builds to 3.1.0 --- settings.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.gradle b/settings.gradle index fb15fb3acc3d..987cdf6d6775 100644 --- a/settings.gradle +++ b/settings.gradle @@ -8,7 +8,7 @@ pluginManagement { gradle.ext.daggerVersion = "2.50" gradle.ext.detektVersion = '1.23.0' gradle.ext.violationCommentsVersion = '1.70.0' - gradle.ext.measureBuildsVersion = '3.0.0' + gradle.ext.measureBuildsVersion = '3.1.0' gradle.ext.koverVersion = '0.7.5' gradle.ext.dependencyAnalysisVersion = '1.28.0'