use of com.synopsys.integration.detectable.detectable.explanation.Explanation in project synopsys-detect by blackducksoftware.
the class GradleDetectable method extractable.
@Override
public DetectableResult extractable() throws DetectableException {
List<Explanation> explanations = new ArrayList<>();
gradleExe = gradleResolver.resolveGradle(environment);
if (gradleExe == null) {
return new ExecutableNotFoundDetectableResult("gradle");
} else {
explanations.add(new FoundExecutable(gradleExe));
}
gradleInspector = gradleInspectorResolver.resolveGradleInspector();
if (gradleInspector == null) {
return new InspectorNotFoundDetectableResult("gradle");
} else {
explanations.add(new FoundInspector(gradleInspector));
}
return new PassedDetectableResult(explanations);
}
use of com.synopsys.integration.detectable.detectable.explanation.Explanation in project synopsys-detect by blackducksoftware.
the class SbtDetectable method sbtPluginExtractable.
// Check if SBT & a plugin can be found
private DetectableResult sbtPluginExtractable() throws DetectableException {
List<Explanation> explanations = new ArrayList<>();
sbt = sbtResolver.resolveSbt();
if (sbt == null) {
return new ExecutableNotFoundDetectableResult("sbt");
} else {
explanations.add(new FoundExecutable(sbt));
}
foundPlugin = sbtPluginFinder.isPluginInstalled(environment.getDirectory(), sbt, sbtResolutionCacheOptions.getSbtCommandAdditionalArguments());
if (!foundPlugin) {
return new SbtMissingPluginDetectableResult(environment.getDirectory().toString());
} else {
explanations.add(new FoundSbtPlugin("Dependency Graph"));
}
return new PassedDetectableResult(explanations);
}
Aggregations