Morfly / airin

Airin is a tool for the automated migration of Gradle Android projects to Bazel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation: where should be declared a Template Provider?

rapenne-s opened this issue · comments

hello,

in https://github.com/Morfly/airin/blob/master/docs/airin_gradle_migration.md#step-3---creating-template-providers it's not clear for me where I need to create the template providers, and with which name. Could you add this information to the documentation please? 🙏

Hello,

Thank you for the question!

The templates should be declared in buildSrc directory. This will ensure, all of them are available to Gradle during the build phase. Please find an example of such a declared template here.

As for the naming, it's more a matter of preference. In the example link above, a template provider is called AndroidModuleBuild, as it generates a BUILD file for all Android modules.

I will also update the documentation, thanks

Airin was rebuilt from the ground up in the latest 0.5.2 release.
Please check the updated documentation as well as the blog post about it.

I will close this issue for now, but please feel free to reopen it in case of any issues/questions.