Skip to content

Commit

Permalink
added apiDiff related changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tanya732 committed Sep 13, 2024
1 parent 3bd9121 commit 489a974
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions gradle/maven-publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,17 @@ javadoc {
}
}

apply plugin: 'me.champeau.gradle.japicmp'
task('apiDiff', type: JapicmpTask, dependsOn: 'jar') {
oldClasspath = files(getBaselineJar(project, baselineVersion))
newClasspath = files(jar.archiveFile)
onlyModified = true
failOnModification = true
ignoreMissingClasses = true
htmlOutputFile = file("$buildDir/reports/apiDiff/apiDiff.html")
txtOutputFile = file("$buildDir/reports/apiDiff/apiDiff.txt")
doLast {
project.logger.quiet("Comparing against baseline version ${baselineVersion}")
}
}

0 comments on commit 489a974

Please sign in to comment.