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 | |
Carmelo Cascone | 21eb042 | 2019-06-17 12:00:33 -0700 | [diff] [blame] | 24 | # intellij-bazel plugin needs this |
Carmelo Cascone | 21eb042 | 2019-06-17 12:00:33 -0700 | [diff] [blame] | 25 | build --incompatible_new_actions_api=false |
Thomas Vachuska | 2050fe4 | 2019-10-14 15:41:45 -0700 | [diff] [blame] | 26 | build --incompatible_generated_protos_in_virtual_imports=false |
| 27 | build --incompatible_depset_union=false |
Carmelo Cascone | 21eb042 | 2019-06-17 12:00:33 -0700 | [diff] [blame] | 28 | |
Ray Milkey | f381442 | 2018-09-17 14:47:23 -0700 | [diff] [blame] | 29 | test --test_summary=terse |
| 30 | test --test_output=errors |
| 31 | test --test_verbose_timeout_warnings |
Ray Milkey | fd9be7e | 2019-02-26 13:26:11 -0800 | [diff] [blame] | 32 | |
Carmelo Cascone | 3dcb7fd | 2019-06-26 14:08:36 -0700 | [diff] [blame] | 33 | # build --disk_cache=~/bazel-cache |
| 34 | # build --remote_http_cache=http://10.1.10.224:80/cache |