refactor MODULE.bazel file Use `register_toolchains(...)` instead of `module(..., toolchains_to_register = [...])`. The former allows us to put the `module` directive at the very top of the file, improving readability.
Java Rules for Bazel https://bazel.build.