Update binary-compatibility-validator to v0.9.0

KT-52045
This commit is contained in:
sebastian.sellmair
2022-05-02 10:03:51 +02:00
committed by Space
parent 9e591f3299
commit fd0645548d
3 changed files with 13 additions and 25 deletions
+12
View File
@@ -7208,6 +7208,12 @@
<sha256 value="d6c3b8d52ae3653375140d67e859477ef90d193be48d44486b21efd70fa2eedc" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.jetbrains.kotlinx" name="binary-compatibility-validator" version="0.9.0">
<artifact name="binary-compatibility-validator-0.9.0.jar">
<md5 value="944480a78222b69d099520d1996e50af" origin="Generated by Gradle"/>
<sha256 value="130cb64e5829e4a2fe07e8b20047da0f3fb0118383e1abf24dbd15eaaa8a61ad" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.jetbrains.kotlinx" name="dataframe" version="0.8.0-dev-952">
<artifact name="dataframe-0.8.0-dev-952.jar">
<md5 value="1a4a81445d286f53a666883c39fd821e" origin="Generated by Gradle"/>
@@ -7529,6 +7535,12 @@
<sha256 value="f0707adf62ffd4b09ec5a21d8c4b95f546ab971fe678fa9305ad2e3bfa218bd4" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.jetbrains.kotlinx" name="kotlinx-metadata-jvm" version="0.4.2">
<artifact name="kotlinx-metadata-jvm-0.4.2.jar">
<md5 value="f118d4e3353077e49401d49f01ca4a59" origin="Generated by Gradle"/>
<sha256 value="2e56aa5cb98a1672c41f10ac7188d3e33356802f4b3a9fd100e619de54b2cb17" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="org.jetbrains.kotlinx" name="kotlinx-metadata-klib" version="0.0.1-dev-10">
<artifact name="kotlinx-metadata-klib-0.0.1-dev-10.jar">
<md5 value="eb72c22727bdbd6abf8649703c82ba68" origin="Generated by Gradle"/>
@@ -6,7 +6,7 @@ configurations {
}
dependencies {
api("org.jetbrains.kotlinx:binary-compatibility-validator:0.7.1")
api("org.jetbrains.kotlinx:binary-compatibility-validator:0.9.0")
api("org.jetbrains.kotlinx:kotlinx-metadata-jvm:0.4.1")
testApi project(':kotlin-test:kotlin-test-junit')
@@ -81,27 +81,3 @@ class RuntimePublicAPITest {
}
}
/*
Copied from `binary-compatibility-validator
Can be removed after:
https://github.com/Kotlin/binary-compatibility-validator/pull/75
*/
private fun List<ClassBinarySignature>.filterOutAnnotated(targetAnnotations: Set<String>): List<ClassBinarySignature> {
if (targetAnnotations.isEmpty()) return this
return filter {
it.annotations.all { ann -> !targetAnnotations.any { ann.refersToName(it) } }
}.map {
ClassBinarySignature(
it.name,
it.superName,
it.outerName,
it.supertypes,
it.memberSignatures.filter { it.annotations.all { ann -> !targetAnnotations.any { ann.refersToName(it) } } },
it.access,
it.isEffectivelyPublic,
it.isNotUsedWhenEmpty,
it.annotations
)
}
}