Skip to content

Commit 7f94aa0

Browse files
Use Gradle's configuration avoidance API when creating tasks
https://docs.gradle.org/current/userguide/task_configuration_avoidance.html
1 parent 433a411 commit 7f94aa0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ android {
88
ndkVersion "26.3.11579264"
99
}
1010

11-
task conanProfile(type: Copy) {
11+
tasks.register('conanProfile', Copy) {
1212
from "conanprofile.txt"
1313
into "build/"
1414

@@ -20,7 +20,7 @@ task conanProfile(type: Copy) {
2020
}
2121
}
2222

23-
task conanInstall {
23+
tasks.register('conanInstall') {
2424
dependsOn(conanProfile)
2525
doFirst {
2626
["armv7", "armv8", "x86", "x86_64"].each { String arch ->

0 commit comments

Comments
 (0)