diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2020-10-01 14:08:40 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2020-10-01 14:08:40 +0530 |
commit | 8446342b6bb768e510eedd7b73a623e68570d5a6 (patch) | |
tree | 69f3a1883936095e3b0a3a3734362178d3e1a786 /build.gradle.kts | |
parent | fbc9fde75e650990d7ce3e5035d53e45f6575ddb (diff) |
build: configure binary-compatibility-validator
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'build.gradle.kts')
-rw-r--r-- | build.gradle.kts | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index c128f531..13225432 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,14 +4,18 @@ */ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import com.android.build.gradle.BaseExtension +import kotlinx.validation.ApiValidationExtension buildscript { repositories { google() jcenter() + // For binary compatibility validator. + maven { url = uri("https://kotlin.bintray.com/kotlinx") } } dependencies { classpath(Plugins.agp) + classpath(Plugins.binaryCompatibilityValidator) classpath(Plugins.kotlin) } } @@ -20,6 +24,14 @@ plugins { id("com.github.ben-manes.versions") version "0.31.0" } +apply(plugin = "binary-compatibility-validator") + +extensions.configure<ApiValidationExtension> { + ignoredProjects = mutableSetOf( + "app" + ) +} + subprojects { repositories { google() |