From f0adc177d7f28048d64873e2f2f92b530af21498 Mon Sep 17 00:00:00 2001 From: Shreck Ye Date: Fri, 8 Nov 2024 11:00:23 +0800 Subject: [PATCH] Apply the binary compatibility validator Gradle plugin --- build.gradle.kts | 8 ++++++++ 1 file changed, 8 insertions(+) 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 + } +}