blob: 3cc21a29cf51cccf72c479dba41b137088181529 [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
24# io_bazel_rules_go needs this
25build --incompatible_disable_deprecated_attr_params=false
26# intellij-bazel plugin needs this
27build --incompatible_depset_is_not_iterable=false
28build --incompatible_new_actions_api=false
Thomas Vachuska2050fe42019-10-14 15:41:45 -070029build --incompatible_generated_protos_in_virtual_imports=false
30build --incompatible_depset_union=false
Carmelo Cascone21eb0422019-06-17 12:00:33 -070031
Ray Milkeyf3814422018-09-17 14:47:23 -070032test --test_summary=terse
33test --test_output=errors
34test --test_verbose_timeout_warnings
Ray Milkeyfd9be7e2019-02-26 13:26:11 -080035
Carmelo Cascone3dcb7fd2019-06-26 14:08:36 -070036# build --disk_cache=~/bazel-cache
37# build --remote_http_cache=http://10.1.10.224:80/cache