Carmelo Cascone | 3dcb7fd | 2019-06-26 14:08:36 -0700 | [diff] [blame] | 1 | # By default, we build and run ONOS using the Bazel-provided remote JDK. The |
| 2 | # specific JDK version is defined in tools/build/jdk/BUILD. |
| 3 | # |
pierventre | 5489c2f | 2022-05-06 19:01:27 +0200 | [diff] [blame] | 4 | # If you prefer to use your locally installed JDK use local_java_repositoy |
| 5 | # in the WORKSPACE file. |
Carmelo Cascone | 3dcb7fd | 2019-06-26 14:08:36 -0700 | [diff] [blame] | 6 | # |
pierventre | 5489c2f | 2022-05-06 19:01:27 +0200 | [diff] [blame] | 7 | # https://bazel.build/docs/bazel-and-java |
Carmelo Cascone | 3dcb7fd | 2019-06-26 14:08:36 -0700 | [diff] [blame] | 8 | |
pierventre | 5489c2f | 2022-05-06 19:01:27 +0200 | [diff] [blame] | 9 | # Builds using remotejdk_11, executes using remotejdk_11 or local_jdk |
| 10 | build --java_language_version=11 |
| 11 | build --java_runtime_version=remotejdk_11 |
| 12 | build --tool_java_language_version=11 |
| 13 | build --tool_java_runtime_version=remotejdk_11 |
Carmelo Cascone | d33d3b4 | 2019-06-18 12:12:36 -0700 | [diff] [blame] | 14 | |
pierventre | 69db90c | 2022-05-06 23:06:20 +0200 | [diff] [blame] | 15 | build --host_force_python=PY3 |
Carmelo Cascone | 9c16aab | 2019-07-01 12:20:20 -0700 | [diff] [blame] | 16 | |
Ray Milkey | 7dac7da | 2017-08-01 16:56:05 -0700 | [diff] [blame] | 17 | build --nouse_ijars |
Thomas Vachuska | 1506abb | 2018-07-31 16:28:37 -0700 | [diff] [blame] | 18 | build --experimental_strict_action_env |
Carmelo Cascone | 21eb042 | 2019-06-17 12:00:33 -0700 | [diff] [blame] | 19 | |
Sean Condon | 436c60a | 2021-01-01 14:23:29 +0000 | [diff] [blame] | 20 | # For external/io_grpc_grpc_java/core/src/main/java/io/grpc/internal/RetriableStream.java |
pierventre | 5489c2f | 2022-05-06 19:01:27 +0200 | [diff] [blame] | 21 | build --javacopt="-Xep:GuardedBy:WARN -Xep:ComparableType:WARN -Xep:ReturnValueIgnored:OFF" |
Sean Condon | 436c60a | 2021-01-01 14:23:29 +0000 | [diff] [blame] | 22 | |
Carmelo Cascone | 21eb042 | 2019-06-17 12:00:33 -0700 | [diff] [blame] | 23 | # intellij-bazel plugin needs this |
Carmelo Cascone | 21eb042 | 2019-06-17 12:00:33 -0700 | [diff] [blame] | 24 | build --incompatible_new_actions_api=false |
Thomas Vachuska | 2bf2453 | 2019-10-14 15:41:45 -0700 | [diff] [blame] | 25 | build --incompatible_generated_protos_in_virtual_imports=false |
Carmelo Cascone | 21eb042 | 2019-06-17 12:00:33 -0700 | [diff] [blame] | 26 | |
Sean Condon | a3ad779 | 2020-01-04 19:26:34 +0000 | [diff] [blame] | 27 | # For bazelbuild/rules_nodejs |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 28 | build --define=angular_ivy_enabled=True |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 29 | |
Ray Milkey | f381442 | 2018-09-17 14:47:23 -0700 | [diff] [blame] | 30 | test --test_summary=terse |
| 31 | test --test_output=errors |
| 32 | test --test_verbose_timeout_warnings |
Ray Milkey | fd9be7e | 2019-02-26 13:26:11 -0800 | [diff] [blame] | 33 | |
Carmelo Cascone | 3dcb7fd | 2019-06-26 14:08:36 -0700 | [diff] [blame] | 34 | # build --disk_cache=~/bazel-cache |
| 35 | # build --remote_http_cache=http://10.1.10.224:80/cache |