fix: applied workaround found at to enable "sbt plugins" (that is, to enable Detect) to run in the background
@@ -26,7 +26,7 @@ public class SbtPluginFinder {
public static final String DEPENDENCY_GRAPH_SBT_INTERNAL_PLUGIN_NAME = "sbt.plugins.DependencyTreePlugin";
private final DetectableExecutableRunner executableRunner;
- public SbtPluginFinder(final DetectableExecutableRunner executableRunner) {
+ public SbtPluginFinder(DetectableExecutableRunner executableRunner) {
this.executableRunner = executableRunner;
}
@@ -46,7 +46,7 @@ public class SbtPluginFinder {
private List<String> listPlugins(File directory, ExecutableTarget sbt) throws DetectableException {
try {
- ExecutableOutput output = executableRunner.executeSuccessfully(ExecutableUtils.createFromTarget(directory, sbt, "plugins"));
+ ExecutableOutput output = executableRunner.executeSuccessfully(ExecutableUtils.createFromTarget(directory, sbt, "-Djline.terminal=jline.UnsupportedTerminal", "plugins"));
return output.getStandardOutputAsList();
} catch (ExecutableFailedException e) {
throw new DetectableException("Unable to list installed sbt plugins, detect requires a suitable sbt plugin is available to find dependency graphs.", e);
