Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ONOS is built with Bazel, an open-source build tool developed by Google. It is also in use by number of well-known projects. By relying on explicit dependencies between targets and SHA hashes of files (rather than on timestamps), Bazel avoids unnecessary work by recognizing whether or not a target artifact requires a rebuild. This also helps to increase reproducibility of builds.

Warning

Developers should install Bazel 0.15.2 on their developer machines. (Note that Bazel 0.16.0 and above will not work for ONOS until the next release when we tackle building ONOS with the most recent versions of Java compiler.) Buck build will continue to work, but increasing number of the aliases and scripts will no longer refer to it. The dev environment already knows how to give priority to Bazel built bits when invoking STC.

To get the source code and build ONOS, all you need to do it run the following commands from Unix-like terminal (e.g. Linux, MacOS):

...