blob: 3e1a90593fea390a2adb58115d401efd6377a0b2 [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
Carmelo Cascone9c16aab2019-07-01 12:20:20 -070019build --host_force_python=PY2
20
Ray Milkey7dac7da2017-08-01 16:56:05 -070021build --nouse_ijars
Thomas Vachuska1506abb2018-07-31 16:28:37 -070022build --experimental_strict_action_env
Carmelo Cascone21eb0422019-06-17 12:00:33 -070023
Carmelo Cascone21eb0422019-06-17 12:00:33 -070024# intellij-bazel plugin needs this
Carmelo Cascone21eb0422019-06-17 12:00:33 -070025build --incompatible_new_actions_api=false
Thomas Vachuska2050fe42019-10-14 15:41:45 -070026build --incompatible_generated_protos_in_virtual_imports=false
27build --incompatible_depset_union=false
Carmelo Cascone21eb0422019-06-17 12:00:33 -070028
Ray Milkeyf3814422018-09-17 14:47:23 -070029test --test_summary=terse
30test --test_output=errors
31test --test_verbose_timeout_warnings
Ray Milkeyfd9be7e2019-02-26 13:26:11 -080032
Carmelo Cascone3dcb7fd2019-06-26 14:08:36 -070033# build --disk_cache=~/bazel-cache
34# build --remote_http_cache=http://10.1.10.224:80/cache