Skip to content

Commit

Permalink
Simplify binary-compatibility-validator setup (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
twyatt authored Mar 13, 2024
1 parent e810572 commit adb2ab2
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 @@ -14,7 +14,7 @@ plugins {
alias(libs.plugins.kotlinter) apply false
alias(libs.plugins.dokka)
alias(libs.plugins.android.publish) apply false
alias(libs.plugins.binary.compatibility.validator)
alias(libs.plugins.api)
}

allprojects {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ktor-mock = { module = "io.ktor:ktor-client-mock", version.ref = "ktor" }
[plugins]
android-library = { id = "com.android.library", version = "8.3.0" }
android-publish = { id = "com.vanniktech.maven.publish", version = "0.27.0" }
binary-compatibility-validator = { id = "binary-compatibility-validator", version = "0.14.0" }
api = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version = "0.14.0" }
dokka = { id = "org.jetbrains.dokka", version = "1.9.10" }
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
kotlinter = { id = "org.jmailen.kotlinter", version = "4.2.0" }
14 changes: 0 additions & 14 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,6 @@ pluginManagement {
google()
gradlePluginPortal()
}

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}")
}
}
}
}
}

plugins {
Expand Down

0 comments on commit adb2ab2

Please sign in to comment.