From 59e888b319c2382957b0937c701233fa5c9401d5 Mon Sep 17 00:00:00 2001 From: tanya-sinha_atko Date: Mon, 16 Sep 2024 10:07:43 +0530 Subject: [PATCH] defined baselineJarPath --- build.gradle | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index b57ff2da..a735a9bd 100644 --- a/build.gradle +++ b/build.gradle @@ -47,8 +47,7 @@ compileTestJava { } // Define or replace this method with the actual implementation -def baselineJarPath = file("$buildDir/libs/baseline-version.jar") - +def baselineJarPath = file("$rootDir/libs/baseline-version.jar") task('apiDiff', type: JapicmpTask, dependsOn: 'jar') { oldClasspath = files(baselineJarPath) @@ -59,7 +58,7 @@ task('apiDiff', type: JapicmpTask, dependsOn: 'jar') { htmlOutputFile = file("$buildDir/reports/apiDiff/apiDiff.html") txtOutputFile = file("$buildDir/reports/apiDiff/apiDiff.txt") doLast { - project.logger.quiet("Comparing against baseline version ${lib.baselineCompareVersion}") + project.logger.quiet("Comparing against manually specified baseline JAR at ${baselineJarPath}") } }