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
12import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
23
34plugins {
45 id " io.gitlab.arturbosch.detekt"
6+ id ' com.automattic.android.measure-builds'
57 id " androidx.navigation.safeargs.kotlin" apply false
68 id " com.android.library" apply false
79 id ' com.google.gms.google-services' apply false
@@ -106,6 +108,12 @@ ext {
106108 wordPressLintVersion = ' 2.0.0'
107109}
108110
111+ measureBuilds {
112+ enable = findProperty(' measureBuildsEnabled' )?. toBoolean() ?: false
113+ automatticProject = MeasureBuildsExtension.AutomatticProject.WordPress
114+ attachGradleScanId = System . getenv(' CI' )?. toBoolean() ?: false
115+ }
116+
109117allprojects {
110118 apply plugin : ' checkstyle'
111119 apply plugin : ' io.gitlab.arturbosch.detekt'
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ pluginManagement {
77 gradle. ext. daggerVersion = " 2.46.1"
88 gradle. ext. detektVersion = ' 1.23.0'
99 gradle. ext. violationCommentsVersion = ' 1.67'
10+ gradle. ext. measureBuildsVersion = ' 2.0.2'
1011
1112 plugins {
1213 id " org.jetbrains.kotlin.android" version gradle. ext. kotlinVersion
@@ -22,12 +23,14 @@ pluginManagement {
2223 id " io.sentry.android.gradle" version gradle. ext. sentryVersion
2324 id " io.gitlab.arturbosch.detekt" version gradle. ext. detektVersion
2425 id " se.bjurr.violations.violation-comments-to-github-gradle-plugin" version gradle. ext. violationCommentsVersion
26+ id ' com.automattic.android.measure-builds' version gradle. ext. measureBuildsVersion
2527 }
2628 repositories {
2729 maven {
2830 url ' https://a8c-libs.s3.amazonaws.com/android'
2931 content {
3032 includeGroup " com.automattic.android"
33+ includeGroup " com.automattic.android.measure-builds"
3134 }
3235 }
3336 gradlePluginPortal()
You can’t perform that action at this time.
0 commit comments