blob: 2b9ed65152a9110185440fe46ffeacc189850036 [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#
pierventre5489c2f2022-05-06 19:01:27 +02004# If you prefer to use your locally installed JDK use local_java_repositoy
5# in the WORKSPACE file.
Carmelo Cascone3dcb7fd2019-06-26 14:08:36 -07006#
pierventre5489c2f2022-05-06 19:01:27 +02007# https://bazel.build/docs/bazel-and-java
Carmelo Cascone3dcb7fd2019-06-26 14:08:36 -07008
pierventre5489c2f2022-05-06 19:01:27 +02009# Builds using remotejdk_11, executes using remotejdk_11 or local_jdk
10build --java_language_version=11
11build --java_runtime_version=remotejdk_11
12build --tool_java_language_version=11
13build --tool_java_runtime_version=remotejdk_11
Carmelo Casconed33d3b42019-06-18 12:12:36 -070014
Carmelo Cascone9c16aab2019-07-01 12:20:20 -070015build --host_force_python=PY2
16
Ray Milkey7dac7da2017-08-01 16:56:05 -070017build --nouse_ijars
Thomas Vachuska1506abb2018-07-31 16:28:37 -070018build --experimental_strict_action_env
Carmelo Cascone21eb0422019-06-17 12:00:33 -070019
Sean Condon436c60a2021-01-01 14:23:29 +000020# For external/io_grpc_grpc_java/core/src/main/java/io/grpc/internal/RetriableStream.java
pierventre5489c2f2022-05-06 19:01:27 +020021build --javacopt="-Xep:GuardedBy:WARN -Xep:ComparableType:WARN -Xep:ReturnValueIgnored:OFF"
Sean Condon436c60a2021-01-01 14:23:29 +000022
Carmelo Cascone21eb0422019-06-17 12:00:33 -070023# intellij-bazel plugin needs this
Carmelo Cascone21eb0422019-06-17 12:00:33 -070024build --incompatible_new_actions_api=false
Thomas Vachuska2bf24532019-10-14 15:41:45 -070025build --incompatible_generated_protos_in_virtual_imports=false
Carmelo Cascone21eb0422019-06-17 12:00:33 -070026
Sean Condona3ad7792020-01-04 19:26:34 +000027# For bazelbuild/rules_nodejs
Sean Condon98b6ddb2019-12-24 08:07:40 +000028build --define=angular_ivy_enabled=True
Sean Condondfc6dba2019-11-09 11:50:23 +000029
Ray Milkeyf3814422018-09-17 14:47:23 -070030test --test_summary=terse
31test --test_output=errors
32test --test_verbose_timeout_warnings
Ray Milkeyfd9be7e2019-02-26 13:26:11 -080033
Carmelo Cascone3dcb7fd2019-06-26 14:08:36 -070034# build --disk_cache=~/bazel-cache
35# build --remote_http_cache=http://10.1.10.224:80/cache