Skip to content

Commit

Permalink
Simplify binary-compatibility-validator setup (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
twyatt authored Mar 13, 2024
1 parent ede6682 commit 7ace33e
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 @@ -9,7 +9,7 @@ plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlinter) apply false
alias(libs.plugins.validator)
alias(libs.plugins.api)
alias(libs.plugins.dokka)
alias(libs.plugins.maven.publish) apply false
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ tuulbox-logging = { module = "com.juul.tuulbox:logging", version = "7.2.0" }
[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" }
dokka = { id = "org.jetbrains.dokka", version = "1.9.20" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", 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 @@ -4,20 +4,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 7ace33e

Please sign in to comment.