From 489a974d25fe15031e4ff6b2800f08455aebf925 Mon Sep 17 00:00:00 2001 From: tanya-sinha_atko Date: Fri, 13 Sep 2024 11:10:57 +0530 Subject: [PATCH] added apiDiff related changes --- gradle/maven-publish.gradle | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gradle/maven-publish.gradle b/gradle/maven-publish.gradle index 1b22a1c2..5092c44f 100644 --- a/gradle/maven-publish.gradle +++ b/gradle/maven-publish.gradle @@ -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}") + } +} +