From ad4233152e8ef2ee0dbde27a98998d03728c98fa Mon Sep 17 00:00:00 2001 From: Jake Wharton Date: Sat, 7 Sep 2024 00:10:22 -0400 Subject: [PATCH] Enable strict validation on CI (#467) --- publish.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/publish.gradle b/publish.gradle index 36112fd1..3536e507 100644 --- a/publish.gradle +++ b/publish.gradle @@ -13,4 +13,8 @@ publishing { apiValidation { klib.enabled = true + + // We run API checks on a Mac where all possible Kotlin targets are available. + // Setting this to true will allow us to catch when targets are removed. + klib.strictValidation = System.getenv("CI") == "true" }