From 0d109d29a2851e645eef1206a5d557226870c1ad Mon Sep 17 00:00:00 2001 From: Shreck Ye Date: Fri, 8 Nov 2024 11:12:09 +0800 Subject: [PATCH] Apply the binary compatibility validator Gradle plugin --- build.gradle.kts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 1241019e..a082a73e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,3 +1,14 @@ tasks.wrapper { distributionType = Wrapper.DistributionType.ALL } + +plugins { + id("org.jetbrains.kotlinx.binary-compatibility-validator") version "0.16.3" +} + +apiValidation { + @OptIn(kotlinx.validation.ExperimentalBCVApi::class) + klib { + enabled = true + } +}