Morfly / airin

Airin is a tool for the automated migration of Gradle Android projects to Bazel
Apache License 2.0
37 stars 5 forks source link

Documentation: where should be declared a Template Provider? #3

Closed rapenne-s closed 10 months ago

rapenne-s commented 2 years ago

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? :pray:

Morfly commented 2 years ago

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

Morfly commented 10 months ago

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.