diff --git a/build.gradle.kts b/build.gradle.kts index 62db3b1..077615f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,6 +6,7 @@ tasks.wrapper { plugins { id("org.jetbrains.dokka") + id("org.jetbrains.kotlinx.binary-compatibility-validator") version "0.16.3" } dependencies { @@ -28,3 +29,10 @@ tasks.register("generateSite") { } from(layout.projectDirectory.dir("site")) } + +apiValidation { + @OptIn(kotlinx.validation.ExperimentalBCVApi::class) + klib { + enabled = true + } +}