snyk-gradle-plugin
Advanced tools
Comparing version 2.10.2 to 2.10.3
@@ -55,3 +55,3 @@ export interface BaseInspectOptions { | ||
declare function extractJsonFromScriptOutput(stdoutText: string): JsonDepsScriptResult; | ||
declare function buildArgs(root: any, targetFile: any, gradleArgs: string[]): string[]; | ||
declare function buildArgs(root: any, targetFile: any, gradleArgs?: string[]): string[]; | ||
export declare const exportsForTests: { | ||
@@ -58,0 +58,0 @@ buildArgs: typeof buildArgs; |
@@ -12,2 +12,5 @@ "use strict"; | ||
const packageFormatVersion = 'mvn:0.0.1'; | ||
function isMultiSubProject(options) { | ||
return options.multiDepRoots; | ||
} | ||
function inspect(root, targetFile, options) { | ||
@@ -27,3 +30,3 @@ return tslib_1.__awaiter(this, void 0, void 0, function* () { | ||
}; | ||
if (options.multiDepRoots) { | ||
if (isMultiSubProject(options)) { | ||
if (subProject) { | ||
@@ -164,2 +167,5 @@ throw new Error('gradle-sub-project flag is incompatible with multiDepRoots'); | ||
} | ||
if (!isMultiSubProject(options)) { | ||
args.push('-PonlySubProject=' + (options['gradle-sub-project'] || '.')); | ||
} | ||
args.push('-I ' + initGradlePath); | ||
@@ -166,0 +172,0 @@ // There might be a --configuration option in 'args'. |
@@ -43,3 +43,3 @@ { | ||
}, | ||
"version": "2.10.2" | ||
"version": "2.10.3" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34634
405