File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change
1
+ import com.automattic.android.measure.MeasureBuildsExtension
1
2
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2
3
3
4
plugins {
4
5
id " io.gitlab.arturbosch.detekt"
6
+ id ' com.automattic.android.measure-builds'
5
7
id " androidx.navigation.safeargs.kotlin" apply false
6
8
id " com.android.library" apply false
7
9
id ' com.google.gms.google-services' apply false
@@ -106,6 +108,12 @@ ext {
106
108
wordPressLintVersion = ' 2.0.0'
107
109
}
108
110
111
+ measureBuilds {
112
+ enable = findProperty(' measureBuildsEnabled' )?. toBoolean() ?: false
113
+ automatticProject = MeasureBuildsExtension.AutomatticProject.WordPress
114
+ attachGradleScanId = System . getenv(' CI' )?. toBoolean() ?: false
115
+ }
116
+
109
117
allprojects {
110
118
apply plugin : ' checkstyle'
111
119
apply plugin : ' io.gitlab.arturbosch.detekt'
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ pluginManagement {
7
7
gradle. ext. daggerVersion = " 2.46.1"
8
8
gradle. ext. detektVersion = ' 1.23.0'
9
9
gradle. ext. violationCommentsVersion = ' 1.67'
10
+ gradle. ext. measureBuildsVersion = ' 2.0.2'
10
11
11
12
plugins {
12
13
id " org.jetbrains.kotlin.android" version gradle. ext. kotlinVersion
@@ -22,12 +23,14 @@ pluginManagement {
22
23
id " io.sentry.android.gradle" version gradle. ext. sentryVersion
23
24
id " io.gitlab.arturbosch.detekt" version gradle. ext. detektVersion
24
25
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
25
27
}
26
28
repositories {
27
29
maven {
28
30
url ' https://a8c-libs.s3.amazonaws.com/android'
29
31
content {
30
32
includeGroup " com.automattic.android"
33
+ includeGroup " com.automattic.android.measure-builds"
31
34
}
32
35
}
33
36
gradlePluginPortal()
You can’t perform that action at this time.
0 commit comments