blob: 64c73843d4b070cd8dc24d4d41634b569c3e3e30 [file] [log] [blame]
Carmelo Cascone3dcb7fd2019-06-26 14:08:36 -07001# 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 Cascone395b2312019-06-18 17:34:16 -070013build --javabase=@org_onosproject_onos//tools/build/jdk:default_jdk
14build --host_javabase=@org_onosproject_onos//tools/build/jdk:default_jdk
Carmelo Cascone3dcb7fd2019-06-26 14:08:36 -070015
Carmelo Cascone395b2312019-06-18 17:34:16 -070016build --java_toolchain=@org_onosproject_onos//tools/build/jdk:default_toolchain
17build --host_java_toolchain=@org_onosproject_onos//tools/build/jdk:default_toolchain
Carmelo Casconed33d3b42019-06-18 12:12:36 -070018
Ray Milkey7dac7da2017-08-01 16:56:05 -070019build --nouse_ijars
Thomas Vachuska1506abb2018-07-31 16:28:37 -070020build --experimental_strict_action_env
Carmelo Cascone21eb0422019-06-17 12:00:33 -070021
22# io_bazel_rules_go needs this
23build --incompatible_disable_deprecated_attr_params=false
24# intellij-bazel plugin needs this
25build --incompatible_depset_is_not_iterable=false
26build --incompatible_new_actions_api=false
27
Ray Milkeyf3814422018-09-17 14:47:23 -070028test --test_summary=terse
29test --test_output=errors
30test --test_verbose_timeout_warnings
Ray Milkeyfd9be7e2019-02-26 13:26:11 -080031
Carmelo Cascone3dcb7fd2019-06-26 14:08:36 -070032# build --disk_cache=~/bazel-cache
33# build --remote_http_cache=http://10.1.10.224:80/cache