Skip to content

Commit

Permalink
load java rules explicitly (bazelbuild#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
ittaiz authored and Andre Rocha committed Jul 6, 2020
1 parent acb05f9 commit 626a879
Show file tree
Hide file tree
Showing 25 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions private/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_java//java:defs.bzl", "java_binary")

java_binary(
name = "java_format",
main_class = "com.google.googlejavaformat.java.Main",
Expand Down
1 change: 1 addition & 0 deletions scala/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@rules_java//java:defs.bzl", "java_import", "java_library")
load(
"@io_bazel_rules_scala//scala:providers.bzl",
_declare_scalac_provider = "declare_scalac_provider",
Expand Down
1 change: 1 addition & 0 deletions scala_proto/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@rules_java//java:defs.bzl", "java_library")
load("//scala_proto:scala_proto_toolchain.bzl", "scala_proto_toolchain")
load("//scala_proto:default_dep_sets.bzl", "DEFAULT_SCALAPB_COMPILE_DEPS", "DEFAULT_SCALAPB_GRPC_DEPS")

Expand Down
2 changes: 2 additions & 0 deletions specs2/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_java//java:defs.bzl", "java_import")

package(default_visibility = ["//visibility:public"])

java_import(
Expand Down
2 changes: 2 additions & 0 deletions src/java/io/bazel/rulesscala/coverage/instrumenter/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_java//java:defs.bzl", "java_binary")

java_binary(
name = "instrumenter",
srcs = [
Expand Down
2 changes: 2 additions & 0 deletions src/java/io/bazel/rulesscala/exe/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_java//java:defs.bzl", "java_binary", "java_library")

java_library(
name = "exe-lib",
srcs = [
Expand Down
2 changes: 2 additions & 0 deletions src/java/io/bazel/rulesscala/io_utils/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_java//java:defs.bzl", "java_library")

java_library(
name = "io_utils",
srcs = glob(["*.java"]),
Expand Down
2 changes: 2 additions & 0 deletions src/java/io/bazel/rulesscala/jar/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_java//java:defs.bzl", "java_binary", "java_library")

java_library(
name = "jar",
srcs = [
Expand Down
2 changes: 2 additions & 0 deletions src/java/io/bazel/rulesscala/scala_test/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_java//java:defs.bzl", "java_library")

java_library(
name = "runner",
srcs = ["Runner.java"],
Expand Down
1 change: 1 addition & 0 deletions src/java/io/bazel/rulesscala/scalac/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@rules_java//java:defs.bzl", "java_binary")
load(
":jvm_export_toolchain.bzl",
_export_scalac_repositories_from_toolchain_to_jvm = "export_scalac_repositories_from_toolchain_to_jvm",
Expand Down
2 changes: 2 additions & 0 deletions src/java/io/bazel/rulesscala/worker/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_java//java:defs.bzl", "java_library")

java_library(
name = "worker",
srcs = [
Expand Down
2 changes: 2 additions & 0 deletions test/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_java//java:defs.bzl", "java_binary", "java_import", "java_library")

package(default_testonly = 1)

load(
Expand Down
1 change: 1 addition & 0 deletions test/coverage/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@rules_java//java:defs.bzl", "java_library", "java_test")
load("//scala:scala.bzl", "scala_library", "scala_test")
load("//scala:scala_toolchain.bzl", "scala_toolchain")

Expand Down
2 changes: 2 additions & 0 deletions test/example_jars/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_java//java:defs.bzl", "java_import")

java_import(
name = "example_jar1",
jars = [
Expand Down
1 change: 1 addition & 0 deletions test/jmh/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@rules_java//java:defs.bzl", "java_library")
load("//scala:scala.bzl", "scala_library")
load("//jmh:jmh.bzl", "scala_benchmark_jmh")

Expand Down
1 change: 1 addition & 0 deletions test/proto/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@rules_java//java:defs.bzl", "java_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")
load(
"//scala_proto:scala_proto.bzl",
Expand Down
1 change: 1 addition & 0 deletions test/src/main/scala/scalarules/test/scala_import/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@rules_java//java:defs.bzl", "java_import")
load("//scala:scala.bzl", "scala_library", "scala_specs2_junit_test")
load("//scala:scala_import.bzl", "scala_import")

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@rules_java//java:defs.bzl", "java_import")
load("//thrift:thrift.bzl", "thrift_library")

java_import(
Expand Down
2 changes: 2 additions & 0 deletions test_expect_failure/missing_direct_deps/internal_deps/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_java//java:defs.bzl", "java_library")

package(default_visibility = ["//visibility:public"])

load("//scala:scala.bzl", "scala_binary", "scala_library", "scala_test")
Expand Down
1 change: 1 addition & 0 deletions test_expect_failure/transitive/java_to_scala/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@rules_java//java:defs.bzl", "java_library")
load("//scala:scala.bzl", "scala_export_to_java", "scala_library")

scala_library(
Expand Down
1 change: 1 addition & 0 deletions test_expect_failure/transitive/scala_to_java/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@rules_java//java:defs.bzl", "java_library")
load("//scala:scala.bzl", "scala_library")

java_library(
Expand Down
2 changes: 2 additions & 0 deletions test_version/version_specific_tests_dir/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_java//java:defs.bzl", "java_binary", "java_library")

package(default_testonly = 1)

load(
Expand Down
1 change: 1 addition & 0 deletions test_version/version_specific_tests_dir/proto/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@rules_java//java:defs.bzl", "java_proto_library")
load(
"@io_bazel_rules_scala//scala_proto:scala_proto.bzl",
"scala_proto_library",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@rules_java//java:defs.bzl", "java_import")
load("@io_bazel_rules_scala//thrift:thrift.bzl", "thrift_library")

java_import(
Expand Down
1 change: 1 addition & 0 deletions third_party/bazel/src/main/protobuf/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
load("@rules_java//java:defs.bzl", "java_proto_library")
load("@rules_proto//proto:defs.bzl", "proto_library")

licenses(["notice"])
Expand Down

0 comments on commit 626a879

Please sign in to comment.