Skip to content

Commit

Permalink
Return only the relevant output jar rather than 5-6 jars including so…
Browse files Browse the repository at this point in the history
…urces, headers etc.
  • Loading branch information
lukaszwawrzyk committed Jan 24, 2022
1 parent 4ed2f5c commit bb643c8
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import ch.epfl.scala.bsp4j.BuildTargetIdentifier;
import com.google.common.collect.ImmutableList;
import com.google.devtools.build.lib.query2.proto.proto2api.Build;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
Expand Down Expand Up @@ -97,6 +98,8 @@ private Stream<T> getResultItemForActionGraphParserOptionsTargetsOptionsAndTarge
List<String> inputs = actionGraphParser.getInputsAsUri(target, bazelData.getExecRoot());

return actionGraphParser.getOutputs(target, ACTION_GRAPH_SUFFIXES).stream()
.max(Comparator.naturalOrder())
.stream()
.map(this::mapActionGraphOutputsToClassDirectory)
.map(
classDirectory ->
Expand Down

0 comments on commit bb643c8

Please sign in to comment.