blob: 0d3b7999009ea8c45e6763daaa803f91dfe46d8d [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
Sean Condon0bd777c2021-01-01 14:23:29 +000024# For external/io_grpc_grpc_java/core/src/main/java/io/grpc/internal/RetriableStream.java
25build --javacopt="-Xep:GuardedBy:WARN -Xep:ComparableType:WARN"
26
Carmelo Cascone21eb0422019-06-17 12:00:33 -070027# intellij-bazel plugin needs this
Carmelo Cascone21eb0422019-06-17 12:00:33 -070028build --incompatible_new_actions_api=false
Thomas Vachuska2bf24532019-10-14 15:41:45 -070029build --incompatible_generated_protos_in_virtual_imports=false
Carmelo Cascone21eb0422019-06-17 12:00:33 -070030
Sean Condona3ad7792020-01-04 19:26:34 +000031# For bazelbuild/rules_nodejs
Sean Condon98b6ddb2019-12-24 08:07:40 +000032build --define=angular_ivy_enabled=True
Sean Condondfc6dba2019-11-09 11:50:23 +000033
Ray Milkeyf3814422018-09-17 14:47:23 -070034test --test_summary=terse
35test --test_output=errors
36test --test_verbose_timeout_warnings
Ray Milkeyfd9be7e2019-02-26 13:26:11 -080037
Carmelo Cascone3dcb7fd2019-06-26 14:08:36 -070038# build --disk_cache=~/bazel-cache
39# build --remote_http_cache=http://10.1.10.224:80/cache