You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Executing the command below produces an error message with Bazel 7.0.0.
$ bazelisk run --define "maven_repo=file://$HOME/.m2/repository" //src/main/java/com/bmuschko/app/config:app-config-lib-export
...
ERROR: /Users/bmuschko/dev/projects/getting-started-with-bazel/exercises/07-java-library-publish/solution/src/main/java/com/bmuschko/app/config/BUILD:14:12: in maven_project_jar rule //src/main/java/com/bmuschko/app/config:app-config-lib-export-project:
Traceback (most recent call last):
File "/private/var/tmp/_bazel_bmuschko/ed0d727382899f7e5d5e87a7e60a8415/external/rules_jvm_external~4.5/private/rules/maven_project_jar.bzl", line 65, column 32, in _maven_project_jar_impl
ijar = java_common.run_ijar(
File "/virtual_builtins_bzl/common/java/java_common.bzl", line 92, column 68, in _run_ijar
Error in _check_java_toolchain_is_declared_on_rule: Rule 'maven_project_jar' in '/Users/bmuschko/dev/projects/getting-started-with-bazel/exercises/07-java-library-publish/solution/src/main/java/com/bmuschko/app/config/BUILD:14:12' must declare '@@bazel_tools//tools/jdk:toolchain_type' toolchain in order to use java_common. See https://github.com/bazelbuild/bazel/issues/18970.
The text was updated successfully, but these errors were encountered:
Given the following code in a
BUILD
file.Executing the command below produces an error message with Bazel 7.0.0.
The text was updated successfully, but these errors were encountered: