aboutsummaryrefslogtreecommitdiff
path: root/buildSrc/src/main/kotlin/org/jetbrains/binaryCompatibility.kt
diff options
context:
space:
mode:
Diffstat (limited to 'buildSrc/src/main/kotlin/org/jetbrains/binaryCompatibility.kt')
-rw-r--r--buildSrc/src/main/kotlin/org/jetbrains/binaryCompatibility.kt29
1 files changed, 0 insertions, 29 deletions
diff --git a/buildSrc/src/main/kotlin/org/jetbrains/binaryCompatibility.kt b/buildSrc/src/main/kotlin/org/jetbrains/binaryCompatibility.kt
deleted file mode 100644
index 0b8386b6..00000000
--- a/buildSrc/src/main/kotlin/org/jetbrains/binaryCompatibility.kt
+++ /dev/null
@@ -1,29 +0,0 @@
-package org.jetbrains
-
-import kotlinx.validation.ApiValidationExtension
-import org.gradle.api.Project
-import org.gradle.kotlin.dsl.configure
-
-internal object BinaryCompatibilityConfig {
- val ignoredPublications = setOf("kotlinAnalysisIntelliJ", "kotlinAnalysis", "kotlinAnalysisCompiler")
- val ignoredSubprojects = setOf(
- "search-component",
- "compiler-dependency",
- "intellij-dependency",
- "kotlin-analysis",
- "frontend"
- )
-}
-
-internal fun Project.registerBinaryCompatibilityCheck(publicationName: String) {
- 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 }.toSet())
- )
- }
- }
- }
-} \ No newline at end of file