[Gradle] KotlinTargetHierarchyBuilder: Deprecate filterCompilations

KT-34662
This commit is contained in:
Sebastian Sellmair
2023-03-07 14:20:04 +01:00
committed by Space Team
parent 95ae7ab8bc
commit 0f657b8a74
@@ -15,8 +15,8 @@ interface KotlinTargetHierarchyBuilder {
/* low-level APIs */ /* low-level APIs */
fun withCompilations(predicate: (KotlinCompilation<*>) -> Boolean) fun withCompilations(predicate: (KotlinCompilation<*>) -> Boolean)
fun withoutCompilations(predicate: (KotlinCompilation<*>) -> Boolean) fun withoutCompilations(predicate: (KotlinCompilation<*>) -> Boolean)
fun filterCompilations(predicate: (KotlinCompilation<*>) -> Boolean) = @Deprecated("Use plain 'withoutCompilations(!predicate) instead'", ReplaceWith("withoutCompilations { !predicate(it) }"))
withoutCompilations { !predicate(it) } fun filterCompilations(predicate: (KotlinCompilation<*>) -> Boolean) = withoutCompilations { !predicate(it) }
/* Convenient groups */ /* Convenient groups */
fun withNative() fun withNative()