forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding workaround patch to pin toolchain by default to jdk 11
- Loading branch information
1 parent
2078ee1
commit cf503d0
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
licenses(["notice"]) | ||
|
||
filegroup( | ||
name = "patch", | ||
srcs = glob([rules_java.path]), # glob everything to satisfy the compile.sh srcs test | ||
visibility = ["//third_party:__pkg__"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/toolchains/BUILD b/toolchains/BUILD | ||
index b8cb35d..25f03ed 100644 | ||
--- a/toolchains/BUILD | ||
+++ b/toolchains/BUILD | ||
@@ -224,6 +224,7 @@ RELEASES = (8, 9, 10, 11) | ||
configuration = DEFAULT_TOOLCHAIN_CONFIGURATION, | ||
source_version = "%s" % release, | ||
target_version = "%s" % release, | ||
+ java_runtime = "@bazel_tools//tools/jdk:remote_jdk11", | ||
) | ||
for release in RELEASES | ||
] |