Skip to content

Commit 60dd8cb

Browse files
committed
build: integrate measure-builds plugin
1 parent 7721a42 commit 60dd8cb

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

build.gradle

+8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import com.automattic.android.measure.MeasureBuildsExtension
12
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
23

34
plugins {
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+
109117
allprojects {
110118
apply plugin: 'checkstyle'
111119
apply plugin: 'io.gitlab.arturbosch.detekt'

settings.gradle

+3
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)