BazelCon 2022 is coming November 16-17 to New York and online.
Register today!

fragments

Stay organized with collections Save and categorize content based on your preferences.
A collection of configuration fragments available in the current rule implementation context. Access a specific fragment by its field name. For example, ctx.fragments.java

Only configuration fragments which are declared in the rule definition may be accessed in this collection.

See the configuration fragment reference for a list of available fragments and the rules documentation for how to use them.