Migrating large projects that consist of hundreds or thousands of modules and being maintained by a large team, from Gradle to Bazel might be challenging. The talk describes the process of automation of the migration that includes the development and usage of a Gradle plugin as well as a type-safe and declarative Kotlin DSL for Bazel code generation.
An automated migration can save a lot of time and effort for organizations by making the transition to Bazel build system smoothly and allow to enjoy the benefits Bazel provides much sooner.
The ideas discussed in this talk were used in the project for automated migration to Bazel, called Airin: https://github.com/Morfly/airin
More information about it could be found in the talk from BazelCon 2021: https://youtu.be/dz-CFEwJuko
Or in this blog post: https://proandroiddev.com/304fa8b3680c
Source code with the example project: https://github.com/Morfly/android-bazel-migration-sample