mirror of
https://github.com/fankes/moshi.git
synced 2025-10-18 23:49:21 +08:00
Change the directory structure to match our modules (#1451)
This commit is contained in:
32
moshi-adapters/japicmp/build.gradle.kts
Normal file
32
moshi-adapters/japicmp/build.gradle.kts
Normal file
@@ -0,0 +1,32 @@
|
||||
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.12.0") {
|
||||
isTransitive = false
|
||||
isForce = true
|
||||
}
|
||||
latest(project(":moshi-adapters"))
|
||||
}
|
||||
|
||||
val japicmp = tasks.register<JapicmpTask>("japicmp") {
|
||||
dependsOn("jar")
|
||||
oldClasspath = baseline
|
||||
newClasspath = latest
|
||||
isOnlyBinaryIncompatibleModified = true
|
||||
isFailOnModification = true
|
||||
txtOutputFile = file("$buildDir/reports/japi.txt")
|
||||
isIgnoreMissingClasses = true
|
||||
isIncludeSynthetic = true
|
||||
}
|
||||
|
||||
tasks.named("check").configure {
|
||||
dependsOn(japicmp)
|
||||
}
|
Reference in New Issue
Block a user