Add binary-compatibility-validator plugin

This commit is contained in:
Niels van Velzen 2021-03-15 21:54:20 +01:00
parent 5d1d7e3600
commit 3fc17f0767
2 changed files with 7 additions and 0 deletions

View File

@ -2,6 +2,7 @@ plugins {
id("io.github.gradle-nexus.publish-plugin").version(Dependencies.nexusPublishPluginVersion)
id("io.gitlab.arturbosch.detekt").version(Dependencies.detektVersion)
id("org.jetbrains.dokka").version(Dependencies.dokkaVersion)
id("org.jetbrains.kotlinx.binary-compatibility-validator").version(Dependencies.KotlinX.binaryCompatibilityValidatorVersion)
}
// Versioning
@ -28,6 +29,11 @@ nexusPublishing.repositories.sonatype {
password.set(getProperty("ossrh.password"))
}
apiValidation {
// Ignore generator / samples / other non jellyfin-x modules
ignoredProjects.addAll(subprojects.map { it.name }.filter { !it.startsWith("jellyfin-") })
}
subprojects {
// Enable required plugins
apply<SigningPlugin>()

View File

@ -28,6 +28,7 @@ object Dependencies {
val coroutinesCore = item("coroutines-core", "1.4.2")
val serializationJson = item("serialization-json", "1.0.1")
const val binaryCompatibilityValidatorVersion = "0.5.0"
}
object Android {