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 | # |
| 4 | # If you prefer to use your locally installed JDK, replace the --javabase and |
| 5 | # --host_javabase arguments with the following lines. ABSOLUTE_JAVABASE should |
| 6 | # point to the "JAVA_HOME" of your JDK. |
| 7 | # |
| 8 | # build --javabase=@bazel_tools//tools/jdk:absolute_javabase |
| 9 | # build --host_javabase=@bazel_tools//tools/jdk:absolute_javabase |
| 10 | # build --define=ABSOLUTE_JAVABASE=<path/to/jdk> |
| 11 | # build --define=RUN_WITH_ABSOLUTE_JAVABASE=true |
| 12 | |
Carmelo Cascone | 395b231 | 2019-06-18 17:34:16 -0700 | [diff] [blame] | 13 | build --javabase=@org_onosproject_onos//tools/build/jdk:default_jdk |
| 14 | build --host_javabase=@org_onosproject_onos//tools/build/jdk:default_jdk |
Carmelo Cascone | 3dcb7fd | 2019-06-26 14:08:36 -0700 | [diff] [blame] | 15 | |
Carmelo Cascone | 395b231 | 2019-06-18 17:34:16 -0700 | [diff] [blame] | 16 | build --java_toolchain=@org_onosproject_onos//tools/build/jdk:default_toolchain |
| 17 | build --host_java_toolchain=@org_onosproject_onos//tools/build/jdk:default_toolchain |
Carmelo Cascone | d33d3b4 | 2019-06-18 12:12:36 -0700 | [diff] [blame] | 18 | |
Carmelo Cascone | 9c16aab | 2019-07-01 12:20:20 -0700 | [diff] [blame] | 19 | build --host_force_python=PY2 |
| 20 | |
Ray Milkey | 7dac7da | 2017-08-01 16:56:05 -0700 | [diff] [blame] | 21 | build --nouse_ijars |
Thomas Vachuska | 1506abb | 2018-07-31 16:28:37 -0700 | [diff] [blame] | 22 | build --experimental_strict_action_env |
Carmelo Cascone | 21eb042 | 2019-06-17 12:00:33 -0700 | [diff] [blame] | 23 | |
Sean Condon | 436c60a | 2021-01-01 14:23:29 +0000 | [diff] [blame^] | 24 | # For external/io_grpc_grpc_java/core/src/main/java/io/grpc/internal/RetriableStream.java |
| 25 | build --javacopt="-Xep:GuardedBy:WARN -Xep:ComparableType:WARN" |
| 26 | |
Carmelo Cascone | 21eb042 | 2019-06-17 12:00:33 -0700 | [diff] [blame] | 27 | # intellij-bazel plugin needs this |
Carmelo Cascone | 21eb042 | 2019-06-17 12:00:33 -0700 | [diff] [blame] | 28 | build --incompatible_new_actions_api=false |
Thomas Vachuska | 2bf2453 | 2019-10-14 15:41:45 -0700 | [diff] [blame] | 29 | build --incompatible_generated_protos_in_virtual_imports=false |
Carmelo Cascone | 21eb042 | 2019-06-17 12:00:33 -0700 | [diff] [blame] | 30 | |
Sean Condon | a3ad779 | 2020-01-04 19:26:34 +0000 | [diff] [blame] | 31 | # For bazelbuild/rules_nodejs |
Sean Condon | 98b6ddb | 2019-12-24 08:07:40 +0000 | [diff] [blame] | 32 | build --define=angular_ivy_enabled=True |
Sean Condon | dfc6dba | 2019-11-09 11:50:23 +0000 | [diff] [blame] | 33 | |
Ray Milkey | f381442 | 2018-09-17 14:47:23 -0700 | [diff] [blame] | 34 | test --test_summary=terse |
| 35 | test --test_output=errors |
| 36 | test --test_verbose_timeout_warnings |
Ray Milkey | fd9be7e | 2019-02-26 13:26:11 -0800 | [diff] [blame] | 37 | |
Carmelo Cascone | 3dcb7fd | 2019-06-26 14:08:36 -0700 | [diff] [blame] | 38 | # build --disk_cache=~/bazel-cache |
| 39 | # build --remote_http_cache=http://10.1.10.224:80/cache |