Skip to content

Commit 743dd20

Browse files
committed
Add test for using platformclasspath from @bazel_tools
1 parent 8f5c5e2 commit 743dd20

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

test/repo/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ java_test(
2626

2727
default_java_toolchain(
2828
name = "my_funky_toolchain",
29+
bootclasspath = ["@bazel_tools//tools/jdk:platformclasspath"],
2930
)

test/repo/WORKSPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ load("@com_google_protobuf//bazel/private:proto_bazel_features.bzl", "proto_baze
1313

1414
proto_bazel_features(name = "proto_bazel_features")
1515

16+
register_toolchains("//:all")
17+
1618
load("@rules_java//java:repositories.bzl", "rules_java_toolchains")
1719

1820
rules_java_toolchains()

0 commit comments

Comments
 (0)