mirror of
https://github.com/fankes/moshi.git
synced 2025-10-18 23:49:21 +08:00
36 lines
808 B
Plaintext
36 lines
808 B
Plaintext
import me.champeau.gradle.japicmp.JapicmpTask
|
|
|
|
plugins {
|
|
`java-library`
|
|
id("me.champeau.gradle.japicmp")
|
|
}
|
|
|
|
val baseline = configurations.create("baseline")
|
|
val latest = configurations.create("latest")
|
|
|
|
dependencies {
|
|
baseline("com.squareup.moshi:moshi-adapters:1.15.1") {
|
|
isTransitive = false
|
|
version {
|
|
strictly("1.14.0")
|
|
}
|
|
}
|
|
latest(project(":moshi-adapters"))
|
|
}
|
|
|
|
val japicmp =
|
|
tasks.register<JapicmpTask>("japicmp") {
|
|
dependsOn("jar")
|
|
oldClasspath.from(baseline)
|
|
newClasspath.from(latest)
|
|
onlyBinaryIncompatibleModified.set(true)
|
|
failOnModification.set(true)
|
|
txtOutputFile.set(layout.buildDirectory.file("reports/japi.txt"))
|
|
ignoreMissingClasses.set(true)
|
|
includeSynthetic.set(true)
|
|
}
|
|
|
|
tasks.named("check").configure {
|
|
dependsOn(japicmp)
|
|
}
|