Skip to content

Commit

Permalink
use bind to remove loader-specific labels in dependencies (bazelbuild…
Browse files Browse the repository at this point in the history
…#980)

* use bind to remove loader-specific labels in dependencies

* remove redundant bind
  • Loading branch information
smparkes authored and Andre Rocha committed Jul 6, 2020
1 parent 9c4dcf8 commit 00930cb
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 9 deletions.
14 changes: 7 additions & 7 deletions scala/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@ java_import(
_declare_scalac_provider(
name = "scalac_default",
default_classpath = [
"@io_bazel_rules_scala_scala_library",
"@io_bazel_rules_scala_scala_reflect",
"//external:io_bazel_rules_scala/dependency/scala/scala_library",
"//external:io_bazel_rules_scala/dependency/scala/scala_reflect",
],
default_macro_classpath = [
"@io_bazel_rules_scala_scala_library",
"@io_bazel_rules_scala_scala_reflect",
"//external:io_bazel_rules_scala/dependency/scala/scala_library",
"//external:io_bazel_rules_scala/dependency/scala/scala_reflect",
],
default_repl_classpath = [
"@io_bazel_rules_scala_scala_library",
"@io_bazel_rules_scala_scala_reflect",
"@io_bazel_rules_scala_scala_compiler",
"//external:io_bazel_rules_scala/dependency/scala/scala_library",
"//external:io_bazel_rules_scala/dependency/scala/scala_reflect",
"//external:io_bazel_rules_scala/dependency/scala/scala_compiler",
],
visibility = ["//visibility:public"],
)
Expand Down
10 changes: 10 additions & 0 deletions scala/private/macros/scala_repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,13 @@ def scala_repositories(
name = "io_bazel_rules_scala/dependency/scala/guava",
actual = "@io_bazel_rules_scala_guava",
)

native.bind(
name = "io_bazel_rules_scala/dependency/scala/scalatest/scalatest",
actual = "@io_bazel_rules_scala_scalatest",
)

native.bind(
name = "io_bazel_rules_scala/dependency/scala/scalactic/scalactic",
actual = "@io_bazel_rules_scala_scalactic",
)
4 changes: 2 additions & 2 deletions scala/scalatest/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ scala_import(
name = "scalatest",
jars = [],
exports = [
"@io_bazel_rules_scala_scalactic",
"@io_bazel_rules_scala_scalatest",
"//external:io_bazel_rules_scala/dependency/scala/scalactic/scalactic",
"//external:io_bazel_rules_scala/dependency/scala/scalatest/scalatest",
],
)
1 change: 1 addition & 0 deletions src/java/io/bazel/rulesscala/scalac/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ java_binary(
"@io_bazel_rules_scala//src/java/io/bazel/rulesscala/worker",
"@io_bazel_rules_scala//src/protobuf/io/bazel/rules_scala:diagnostics_java_proto",
"@scalac_rules_commons_io//jar",
"//external:io_bazel_rules_scala/dependency/commons_io/commons_io",
],
)

Expand Down

0 comments on commit 00930cb

Please sign in to comment.