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 | |
Ray Milkey | 7dac7da | 2017-08-01 16:56:05 -0700 | [diff] [blame] | 19 | build --nouse_ijars |
Thomas Vachuska | 1506abb | 2018-07-31 16:28:37 -0700 | [diff] [blame] | 20 | build --experimental_strict_action_env |
Carmelo Cascone | 21eb042 | 2019-06-17 12:00:33 -0700 | [diff] [blame] | 21 | |
| 22 | # io_bazel_rules_go needs this |
| 23 | build --incompatible_disable_deprecated_attr_params=false |
| 24 | # intellij-bazel plugin needs this |
| 25 | build --incompatible_depset_is_not_iterable=false |
| 26 | build --incompatible_new_actions_api=false |
| 27 | |
Ray Milkey | f381442 | 2018-09-17 14:47:23 -0700 | [diff] [blame] | 28 | test --test_summary=terse |
| 29 | test --test_output=errors |
| 30 | test --test_verbose_timeout_warnings |
Ray Milkey | fd9be7e | 2019-02-26 13:26:11 -0800 | [diff] [blame] | 31 | |
Carmelo Cascone | 3dcb7fd | 2019-06-26 14:08:36 -0700 | [diff] [blame] | 32 | # build --disk_cache=~/bazel-cache |
| 33 | # build --remote_http_cache=http://10.1.10.224:80/cache |