Skip to content

Commit

Permalink
Enable binary compatibility validation for KLibs
Browse files Browse the repository at this point in the history
  • Loading branch information
lukellmann committed Mar 20, 2024
1 parent 76c5474 commit 01d6cf6
Show file tree
Hide file tree
Showing 7 changed files with 26,511 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.

5 changes: 5 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ kotlin {
}
}

apiValidation {
// https://github.com/Kotlin/binary-compatibility-validator/issues/199
ignoredProjects += "live-tests"
}

tasks {
dokkaHtmlMultiModule {
enabled = false
Expand Down
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.1" # https://github.com/Kotlin/binary-compatibility-validator
buildconfig = "5.3.5" # https://github.com/gmazzo/gradle-buildconfig-plugin


Expand Down
6,566 changes: 6,566 additions & 0 deletions rest/api/rest.klib.api

Large diffs are not rendered by default.

0 comments on commit 01d6cf6

Please sign in to comment.