Skip to content

Commit d8a56a8

Browse files
committed
Remove deprecated gradle features.
Test: ./gradlew assemble Bug: 158763485 Change-Id: I3834bca3f47cdf853dfdb419cf811cd2ca0b0471
1 parent 43599b8 commit d8a56a8

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

app/build.gradle

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,28 @@ android {
8282
}
8383
}
8484

85-
task stripTestOnlyNormalDebug << {
86-
stripTestOnlyForBuild("normal", "debug")
85+
task stripTestOnlyNormalDebug {
86+
doLast {
87+
stripTestOnlyForBuild("normal", "debug")
88+
}
8789
}
8890

89-
task stripTestOnlyNormalRelease << {
90-
stripTestOnlyForBuild("normal", "release")
91+
task stripTestOnlyNormalRelease {
92+
doLast {
93+
stripTestOnlyForBuild("normal", "release")
94+
}
9195
}
9296

93-
task stripTestOnlyReplicaDebug << {
94-
stripTestOnlyForBuild("replica", "debug")
97+
task stripTestOnlyReplicaDebug {
98+
doLast {
99+
stripTestOnlyForBuild("replica", "debug")
100+
}
95101
}
96102

97-
task stripTestOnlyReplicaRelease << {
98-
stripTestOnlyForBuild("replica", "release")
103+
task stripTestOnlyReplicaRelease {
104+
doLast {
105+
stripTestOnlyForBuild("replica", "release")
106+
}
99107
}
100108

101109
tasks.whenTaskAdded { task ->

0 commit comments

Comments
 (0)