Building with Bazel

Jul 8 2022 · Video Course (1 hr, 27 mins) · Intermediate

Bazel is an open source build system created by Google for compiling large complex codebases. This courses teaches the basics of using building from writing a very simple Java application to compiling an Android app with a lots of dependencies.

Version

  • Starlark, Bazel 5.1, Visual Studo Code 1.66

Learning Bazel

Introduction

5:28 Free

Understand the very basics of Bazel: why it was created, what it does, and how it can help you.

1

Install Bazel

7:45 Free

Learn how to get Bazel up and running on your system. This episode shows how to install Bazel on macOS, Winodws, and Linux.

2

Understand Bazel

3:30 Free

Get an overview of all the various components that are needed to build a project using the Bazel build system.

3

Build a Simple App

8:02 Free

Get started with Bazel by writing a simple Java app that prints a joke to the console.

4

This episodes introduces you to the several sample apps that you’ll be building throughout this course.

5

Use a Monorepo

3:51 Free

Learn about a monorepo. Get an idea about the advantages of using a monorepo and then you’ll do a little setup to get your monorepo.

6

Learn Starlark

5:23 Free

Meet the Starlark language that you’ll use to write your workspaces and build files. This episode will give you an overview of it.

7

Learn the purposes of Bazel rules and why you need to use them in order to compile your software projects.

8

Create a Workspace

4:54 Free

Create a new workspace for your iOS app, by incorporating several special rules to written by the community.

9

Learn about how dependencies are handled with Bazel then see how to organize your dependencies in your project.

10

Add Dependencies

5:55 Free

See how to add dependencies to your workspace for your Android project.

11

Understand how Build files work in Bazel and then write a custom build file to compile an iOS app.

12

Write a custom Build for your Android app, and see how to include dependencies in the build.

13

Be introduced to a BazelRC file and learn how to incorporate them into your Bazel build.

14

Run Unit Tests

4:55 Free

Learn how to define unit tests in your Build file and then how to run your tests using Bazel.

15

See how to incorporate Bazel directly into Android Studio, allowing you to run your Bazel builds directly in the application.

16

Leverage the power of Bazel by incorporating a third party service to remotely compile your project.

17

Learn how to use custom rules with Bazel to generate an Xcode project for your iOS app.

18

Find Help

2:12 Free

Learn about all the various Bazel resources that you can turn to when you get off the happy path.

19

Who is this for?

This course is for software engineers who are looking to incorporate Bazel into their workflow.

Covered concepts

  • Installation
  • Workspace & build files
  • Custom rules
  • Configuration files
  • Android Studio plugin
  • Xcode project generation
  • Distributed builds

Contributors

Comments