@@ -32,6 +32,8 @@ if (!gradleCommand) {
3232}
3333
3434const externalFiles = argv [ "external-file" ] ;
35+ const pathOfReport = argv [ "path-of-report" ] ;
36+ const outputDir = pathOfReport || "build/dependencyUpdates"
3537const buildFiles = getBuildFiles ( externalFiles , debugLog ) ;
3638debugLog ( `Build Files:\n ${ buildFiles . join ( "\n" ) } ` ) ;
3739if ( ! buildFiles . length ) {
@@ -83,7 +85,7 @@ ${"info".blue} Color legend :
8385
8486 // info Color legend :
8587
86- const gradleDependencyUpdateArgs = [ "dependencyUpdates" , "-DoutputFormatter=json" , "-DoutputDir=build/dependencyUpdates " ] ;
88+ const gradleDependencyUpdateArgs = [ "dependencyUpdates" , "-DoutputFormatter=json" , "-DoutputDir=${outputDir} " ] ;
8789 const gradleDependencyUpdateResolution = argv . resolution ;
8890 if ( gradleDependencyUpdateResolution ) {
8991 gradleDependencyUpdateArgs . push ( `-Drevision=${ gradleDependencyUpdateResolution } ` ) ;
@@ -286,7 +288,7 @@ function findOutdatedDependencies() {
286288}
287289
288290function findUpgradeJsonReportFiles ( ) {
289- const reportJsonPath = "build/dependencyUpdates /report.json" ;
291+ const reportJsonPath = "${outputDir} /report.json" ;
290292 const upgradeReportFiles = [ ] ;
291293 if ( existsSync ( reportJsonPath ) ) {
292294 upgradeReportFiles . push ( reportJsonPath ) ;
0 commit comments