snyk 1.1298.2 → 1.1298.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -227502,8 +227502,9 @@ function buildArgs(root, targetFile, initGradlePath, options, gradleVersion) {
227502
227502
  if (!fs.existsSync(resolvedTargetFilePath)) {
227503
227503
  throw new Error('File not found: "' + resolvedTargetFilePath + '"');
227504
227504
  }
227505
- args.push('--build-file');
227506
- args.push(resolvedTargetFilePath);
227505
+ const resolvedTargetDir = path.dirname(resolvedTargetFilePath);
227506
+ args.push('--project-dir');
227507
+ args.push(resolvedTargetDir);
227507
227508
  }
227508
227509
  // Arguments to init script are supplied as properties: https://stackoverflow.com/a/48370451
227509
227510
  if (options['configuration-matching']) {