-
-
Notifications
You must be signed in to change notification settings - Fork 287
Expand file tree
/
Copy pathBUILD.bazel
More file actions
42 lines (36 loc) · 1.03 KB
/
BUILD.bazel
File metadata and controls
42 lines (36 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
load("//scala:scala_toolchain.bzl", "scala_toolchain")
load("//scala:scala.bzl", "scala_library")
# Toolchain WITH the kind-projector plugin
scala_toolchain(
name = "with_plugin_impl",
plugins = ["@org_typelevel_kind_projector//jar"],
visibility = ["//visibility:public"],
)
toolchain(
name = "with_plugin",
toolchain = ":with_plugin_impl",
toolchain_type = "//scala:toolchain_type",
visibility = ["//visibility:public"],
)
# Toolchain WITHOUT the plugin (but otherwise identical)
scala_toolchain(
name = "without_plugin_impl",
# No plugins attribute
visibility = ["//visibility:public"],
)
toolchain(
name = "without_plugin",
toolchain = ":without_plugin_impl",
toolchain_type = "//scala:toolchain_type",
visibility = ["//visibility:public"],
)
# Test that requires kind-projector plugin
scala_library(
name = "requires_plugin",
srcs = ["RequiresPlugin.scala"],
)
# Test that doesn't require any plugin
scala_library(
name = "no_plugin_needed",
srcs = ["NoPlugin.scala"],
)