Skip to content

Commit

Permalink
Fix Scala repl targets (#11272)
Browse files Browse the repository at this point in the history
We need _wrap_rule to make sure plugins like wartremover are also
correctly applied here.

We need jline because otherwise the repl starts but then fails because
jline isn’t in scope.

changelog_begin
changelog_end
  • Loading branch information
cocreature authored Oct 18, 2021
1 parent e4808f6 commit a988579
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bazel_tools/scala.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -570,9 +570,9 @@ def _create_scala_repl(
**kwargs):
name = name + "_repl"
deps = resolve_scala_deps(deps, scala_deps, versioned_deps, versioned_scala_deps)
runtime_deps = resolve_scala_deps(runtime_deps, scala_runtime_deps)
runtime_deps = resolve_scala_deps(runtime_deps, scala_runtime_deps) + ["@maven//:org_jline_jline"]
tags = tags + ["manual"]
scala_repl(name = name, deps = deps, runtime_deps = runtime_deps, tags = tags, **kwargs)
_wrap_rule(scala_repl, name = name, deps = deps, runtime_deps = runtime_deps, tags = tags, **kwargs)

def da_scala_library(name, **kwargs):
"""
Expand Down

0 comments on commit a988579

Please sign in to comment.