diff --git a/scala/scala_import.bzl b/scala/scala_import.bzl index 27f7c9202..2ff83b3a7 100644 --- a/scala/scala_import.bzl +++ b/scala/scala_import.bzl @@ -149,4 +149,5 @@ scala_import = rule( default = Label("@bazel_tools//tools/jdk:current_java_toolchain"), ), }, + toolchains = ["@bazel_tools//tools/jdk:toolchain_type"], )