Skip to content

Commit

Permalink
defined baselineJarPath
Browse files Browse the repository at this point in the history
  • Loading branch information
tanya732 committed Sep 16, 2024
1 parent 59e0144 commit 59e888b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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}")
}
}

Expand Down

0 comments on commit 59e888b

Please sign in to comment.