fix(build): use new Gradle API for task matching

This commit is contained in:
Harsh Shandilya 2024-02-02 23:54:54 +05:30
parent ff4a09e41b
commit 82a1ba9ac3

View file

@ -1,5 +1,5 @@
/* /*
* Copyright © 2022 Harsh Shandilya. * Copyright © 2022-2024 Harsh Shandilya.
* Use of this source code is governed by an MIT-style * Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at * license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT. * https://opensource.org/licenses/MIT.
@ -41,7 +41,7 @@ class KotlinKaptPlugin : Plugin<Project> {
} }
} }
project.tasks project.tasks
.matching { it.name.startsWith("kapt") && it.name.endsWith("UnitTestKotlin") } .named { it.startsWith("kapt") && it.endsWith("UnitTestKotlin") }
.configureEach { enabled = false } .configureEach { enabled = false }
} }