Its a code snippet from XYZ module’s(basically its...
# android
s
Its a code snippet from XYZ module’s(basically its a multi module project)
build.gradle
file and we have 30 more modules, is there is a way to define this in a single
.gradle
file and re-use that piece of snippet from there instead of duplicating in every buil.gradle file of every module.
d
In the project I have, I'd have a plug in convention apply this. One convention that applies the app, the other to apply the library. The code will be duplicated in the conventions, but that part has been manageable for us.
e
for a similar use case, I wrote a binary plugin which applies the logic, then one convention plugin (per Android project type) which applies the binary plugin
s
Thanks, I have no idea about convention plugin. I will learn about
d
s
ohhhh, thanks 🙂