commit | f5b6abce49f1649f9a2970a1a83448a06c837f5f | [log] [tgz] |
---|---|---|
author | Ivo List <ilist@google.com> | Wed Dec 16 23:50:56 2020 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Dec 16 23:52:15 2020 -0800 |
tree | a59be06e9ba51f50913b819518ebf08d6961b6eb | |
parent | 467e1d4f6ae40ada48ae82fd1240ad9701d255ad [diff] |
Fix Java tests to use Java toolchain resolution. The flag is flipped for tests, old configuration options `javabase` and `java_toolchain` are marked deprecated. All the tests are fixed to execute using new toolchain resolution. Changed `local_java_repository` to generate `java_runtime` with `java_home` parameter set (instead of srcs). This behaves better, because `java_stub_template.txt` then does not need runfiles to execute produced `deploy.jar`. Kept the same version with `srcs` in the `jdk.WORKSPACE`. Related to https://github.com/bazelbuild/bazel/issues/4592. Closes #12695. PiperOrigin-RevId: 347969628
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md