0.0.6
New Features*
- Rich fork of Bazel javac build, which supports reduced classpath compilation and fallback
Incompatible Changes
- The flag for strict classpath compilation (something not available in Bazel's javac compiler) has been changed to
-Xecj_use_direct_deps_only
WORKSPACE setup
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "bazel_jdt_java_toolchain",
urls = [
"https://github.com/salesforce/bazel-jdt-java-toolchain/releases/download/0.0.6/rules_jdt.tar.gz",
],
sha256 = "79f637e03f176c69b5d826782961c67bcb9463d2853878ad31441d27a198bd59",
)
load("@bazel_jdt_java_toolchain//jdt:repositories.bzl", "rules_jdt_dependencies", "rules_jdt_toolchains")
rules_jdt_dependencies()
rules_jdt_toolchains()
Using the rules
Use --extra_toolchains=@bazel_jdt_java_toolchain//jdt:all
on the command line (or in .bazelrc
) to enable JDT builder with local JDK for compilation.
See the source.