Skip to Content
Beginning Bazel: Building and Testing for Java, Go, and More
book

Beginning Bazel: Building and Testing for Java, Go, and More

by P.J. McNerney
December 2019
Beginner to intermediate
197 pages
3h 32m
English
Apress
Content preview from Beginning Bazel: Building and Testing for Java, Go, and More
© P.J. McNerney 2020
P. McNerneyBeginning Bazelhttps://doi.org/10.1007/978-1-4842-5194-2_7

7. Code Organization and Bazel

P. J. McNerney1 
(1)
Blackhawk, CO, USA
 

Over the last several chapters, the examples kept all of the code in a single directory. While this was convenient for illustration purposes, this will not work in practice. Furthermore, the examples often broke from established directory and package patterns found (and even enforced) in certain languages (e.g., Java, Go, etc.). In this chapter, we will correct the organizational shortcomings of prior chapters and demonstrate the facilities Bazel provides for working within a hierarchical directory structure.

Note

The directory structure we create here will be used throughout the rest of the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Jenkins 2.x Continuous Integration Cookbook - Third Edition

Jenkins 2.x Continuous Integration Cookbook - Third Edition

Mitesh Soni, Alan Mark Berg

Publisher Resources

ISBN: 9781484251942Purchase LinkPublisher Website