diff options
Diffstat (limited to 'buildSrc/src/main/kotlin/org/jetbrains/binaryCompatibility.kt')
-rw-r--r-- | buildSrc/src/main/kotlin/org/jetbrains/binaryCompatibility.kt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/buildSrc/src/main/kotlin/org/jetbrains/binaryCompatibility.kt b/buildSrc/src/main/kotlin/org/jetbrains/binaryCompatibility.kt index fb686e1d..0b8386b6 100644 --- a/buildSrc/src/main/kotlin/org/jetbrains/binaryCompatibility.kt +++ b/buildSrc/src/main/kotlin/org/jetbrains/binaryCompatibility.kt @@ -16,14 +16,12 @@ internal object BinaryCompatibilityConfig { } internal fun Project.registerBinaryCompatibilityCheck(publicationName: String) { - publicationName.takeIf { - it !in BinaryCompatibilityConfig.ignoredPublications - }?.let { + if (publicationName !in BinaryCompatibilityConfig.ignoredPublications) { if (tasks.findByName("apiBuild") == null) { plugins.apply(kotlinx.validation.BinaryCompatibilityValidatorPlugin::class.java) configure<ApiValidationExtension> { ignoredProjects.addAll( - BinaryCompatibilityConfig.ignoredSubprojects.intersect(allprojects.map { it.name }) + BinaryCompatibilityConfig.ignoredSubprojects.intersect(allprojects.map { it.name }.toSet()) ) } } |