mirror of
https://github.com/fankes/moshi.git
synced 2025-10-18 15:39:22 +08:00
* Update dependency gradle to v8 * Remove VERSION_CATALOGS feature * Match JDK 19 in toolchain * Update forces + fix japicmp version * ??? * Another * Update japicmp * Update shadow plugin --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Zac Sweers <pandanomic@gmail.com>
35 lines
788 B
Plaintext
35 lines
788 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.14.0") {
|
|
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)
|
|
}
|