File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import com.automattic.android.measure.MeasureBuildsExtension
1+ import com.automattic.android.measure.reporters.InternalA8cCiReporter
2+ import com.automattic.android.measure.reporters.SlowSlowTasksMetricsReporter
23import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
34
45plugins {
@@ -119,8 +120,14 @@ ext {
119120
120121measureBuilds {
121122 enable = findProperty(' measureBuildsEnabled' )?. toBoolean() ?: false
122- automatticProject = MeasureBuildsExtension.AutomatticProject.WordPress
123- authToken = findProperty(' appsMetricsToken' )
123+ onBuildMetricsReadyListener { report ->
124+ SlowSlowTasksMetricsReporter . report(report)
125+ InternalA8cCiReporter . reportBlocking(
126+ report,
127+ " wordpress" ,
128+ findProperty(' appsMetricsToken' )
129+ )
130+ }
124131 attachGradleScanId = System . getenv(' CI' )?. toBoolean() ?: false
125132}
126133
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ pluginManagement {
88 gradle. ext. daggerVersion = " 2.50"
99 gradle. ext. detektVersion = ' 1.23.0'
1010 gradle. ext. violationCommentsVersion = ' 1.70.0'
11- gradle. ext. measureBuildsVersion = ' 2 .1.2 '
11+ gradle. ext. measureBuildsVersion = ' 3 .1.0 '
1212 gradle. ext. koverVersion = ' 0.7.5'
1313 gradle. ext. dependencyAnalysisVersion = ' 1.28.0'
1414
You can’t perform that action at this time.
0 commit comments