Skip to content

Commit

Permalink
Simplify binary-compatibility-validator setup (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
twyatt authored Mar 11, 2024
1 parent 414bb59 commit 5fb1981
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ plugins {
alias(libs.plugins.kotlinter) apply false
alias(libs.plugins.dokka)
alias(libs.plugins.maven.publish) apply false
alias(libs.plugins.validator)
alias(libs.plugins.api)
}

apiValidation {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ robolectric = { module = "org.robolectric:robolectric", version = "4.11.1" }
[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
android-library = { id = "com.android.library", version.ref = "agp" }
api = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version = "0.14.0" }
compose = { id = "org.jetbrains.compose", version.ref = "compose" }
dokka = { id = "org.jetbrains.dokka", version = "1.9.20" }
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlinter = { id = "org.jmailen.kotlinter", version = "4.2.0" }
maven-publish = { id = "com.vanniktech.maven.publish", version = "0.27.0" }
validator = { id = "binary-compatibility-validator", version = "0.14.0" }
14 changes: 0 additions & 14 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,6 @@ pluginManagement {
gradlePluginPortal()
mavenCentral()
}

resolutionStrategy {
eachPlugin {
when (requested.id.id) {
"binary-compatibility-validator" ->
useModule("org.jetbrains.kotlinx:binary-compatibility-validator:${requested.version}")

else -> when (requested.id.namespace) {
"com.android" ->
useModule("com.android.tools.build:gradle:${requested.version}")
}
}
}
}
}

include(
Expand Down

0 comments on commit 5fb1981

Please sign in to comment.