Skip to content

Commit

Permalink
Enable binary compatibility validation for KLibs (#929)
Browse files Browse the repository at this point in the history
* Enable binary compatibility validation for KLibs

See https://github.com/Kotlin/binary-compatibility-validator/blob/0.15.0-Beta.1/README.md#experimental-klib-abi-validation-support

* Use 0.15.0-Beta.2

The workaround for :core:live-tests is no longer needed.
  • Loading branch information
lukellmann authored Apr 12, 2024
1 parent 4180ad0 commit d9ad58e
Show file tree
Hide file tree
Showing 6 changed files with 26,506 additions and 1 deletion.
3 changes: 3 additions & 0 deletions buildSrc/src/main/kotlin/BinaryCompatibility.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import kotlinx.validation.ApiValidationExtension
import kotlinx.validation.ExperimentalBCVApi

fun ApiValidationExtension.applyKordBCVOptions() {
nonPublicMarkers += "dev.kord.common.annotation.KordInternal"
@OptIn(ExperimentalBCVApi::class)
klib.enabled = true
}
7,434 changes: 7,434 additions & 0 deletions common/api/common.klib.api

Large diffs are not rendered by default.

10,641 changes: 10,641 additions & 0 deletions core/api/core.klib.api

Large diffs are not rendered by default.

1,861 changes: 1,861 additions & 0 deletions gateway/api/gateway.klib.api

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ mockk = "1.13.10" # https://github.com/mockk/mockk
# plugins
dokka = "1.9.20" # https://github.com/Kotlin/dokka
kotlinx-atomicfu = "0.23.2" # https://github.com/Kotlin/kotlinx-atomicfu
binary-compatibility-validator = "0.14.0" # https://github.com/Kotlin/binary-compatibility-validator
binary-compatibility-validator = "0.15.0-Beta.2" # https://github.com/Kotlin/binary-compatibility-validator
buildconfig = "5.3.5" # https://github.com/gmazzo/gradle-buildconfig-plugin


Expand Down
Loading

0 comments on commit d9ad58e

Please sign in to comment.