Skip to content

Commit 7d0cded

Browse files
hlopkocopybara-github
authored andcommitted
Move java constraints to rules_java
bazelbuild/bazel#6516 bazelbuild/bazel#6521 PiperOrigin-RevId: 254374629 Change-Id: I9fd82cbf8d244a0419026b75cfda83894859dbbd
1 parent 1c13019 commit 7d0cded

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

java/constraints/BUILD

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,43 @@
33
package(default_visibility = ["//visibility:public"])
44

55
licenses(["notice"])
6+
7+
filegroup(
8+
name = "srcs",
9+
srcs = ["BUILD"],
10+
)
11+
12+
constraint_setting(name = "runtime")
13+
14+
constraint_value(
15+
name = "jdk8",
16+
constraint_setting = ":runtime",
17+
)
18+
19+
constraint_value(
20+
name = "jdk9",
21+
constraint_setting = ":runtime",
22+
)
23+
24+
constraint_value(
25+
name = "jdk10",
26+
constraint_setting = ":runtime",
27+
)
28+
29+
constraint_value(
30+
name = "jdk11",
31+
constraint_setting = ":runtime",
32+
)
33+
34+
constraint_setting(name = "language")
35+
36+
# visibility
37+
constraint_value(
38+
name = "java7",
39+
constraint_setting = ":language",
40+
)
41+
42+
constraint_value(
43+
name = "java8",
44+
constraint_setting = ":language",
45+
)

0 commit comments

Comments
 (0)