snyk-sbt-plugin
Advanced tools
Comparing version 2.5.2 to 2.5.3
@@ -97,3 +97,3 @@ "use strict"; | ||
} | ||
if (semver.gte(sbtVersion, '0.1.0') && semver.lt(sbtVersion, '1.2.0')) { | ||
if (semver.gte(sbtVersion, '0.1.0') && semver.lt(sbtVersion, '1.1.0')) { | ||
pluginName = 'SnykSbtPlugin-0.1x.scala'; | ||
@@ -117,3 +117,3 @@ } | ||
const targetFilePath = path.dirname(path.resolve(root, targetFile)); | ||
const sbtArgs = buildArgs(options.args); | ||
const sbtArgs = buildArgs(options.args, false, true); | ||
const sbtVersion = getSbtVersion(root, targetFile); | ||
@@ -136,3 +136,2 @@ const sbtPluginPath = generateSbtPluginPath(sbtVersion); | ||
} | ||
sbtArgs.push('snykRenderTree'); | ||
const stdout = yield subProcess.execute('sbt', sbtArgs, { cwd: targetFilePath }); | ||
@@ -185,3 +184,3 @@ return { | ||
} | ||
function buildArgs(sbtArgs, isCoursierProject) { | ||
function buildArgs(sbtArgs, isCoursierProject, isOutputGraph) { | ||
// force plain output so we don't have to parse colour codes | ||
@@ -192,6 +191,9 @@ let args = ['\"-Dsbt.log.noformat=true\"']; | ||
} | ||
if (isCoursierProject) { | ||
if (isOutputGraph) { | ||
args.push('snykRenderTree'); | ||
} | ||
else if (isCoursierProject) { | ||
args.push('coursierDependencyTree'); | ||
} | ||
else if (!isCoursierProject) { | ||
else { | ||
args.push('dependencyTree'); | ||
@@ -198,0 +200,0 @@ } |
@@ -46,3 +46,3 @@ { | ||
}, | ||
"version": "2.5.2" | ||
"version": "2.5.3" | ||
} |
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
41984
563