@@ -32,6 +32,8 @@ if (!gradleCommand) {
32
32
}
33
33
34
34
const externalFiles = argv [ "external-file" ] ;
35
+ const pathOfReport = argv [ "path-of-report" ] ;
36
+ const outputDir = pathOfReport || "build/dependencyUpdates"
35
37
const buildFiles = getBuildFiles ( externalFiles , debugLog ) ;
36
38
debugLog ( `Build Files:\n ${ buildFiles . join ( "\n" ) } ` ) ;
37
39
if ( ! buildFiles . length ) {
@@ -83,7 +85,7 @@ ${"info".blue} Color legend :
83
85
84
86
// info Color legend :
85
87
86
- const gradleDependencyUpdateArgs = [ "dependencyUpdates" , "-DoutputFormatter=json" , "-DoutputDir=build/dependencyUpdates " ] ;
88
+ const gradleDependencyUpdateArgs = [ "dependencyUpdates" , "-DoutputFormatter=json" , "-DoutputDir=${outputDir} " ] ;
87
89
const gradleDependencyUpdateResolution = argv . resolution ;
88
90
if ( gradleDependencyUpdateResolution ) {
89
91
gradleDependencyUpdateArgs . push ( `-Drevision=${ gradleDependencyUpdateResolution } ` ) ;
@@ -286,7 +288,7 @@ function findOutdatedDependencies() {
286
288
}
287
289
288
290
function findUpgradeJsonReportFiles ( ) {
289
- const reportJsonPath = "build/dependencyUpdates /report.json" ;
291
+ const reportJsonPath = "${outputDir} /report.json" ;
290
292
const upgradeReportFiles = [ ] ;
291
293
if ( existsSync ( reportJsonPath ) ) {
292
294
upgradeReportFiles . push ( reportJsonPath ) ;
0 commit comments