Hello everybody! I’ve seen in projects like <this>...
# gradle
m
Hello everybody! I’ve seen in projects like this the use of Gradle’s build logic but I can’t find any proper article/documentation to understand them so I can apply the concept to my own projects. Can anybody share some article? Thanks 🙏
c
not kotlin but kotlin colored but for starters look here https://docs.gradle.org/current/samples/sample_convention_plugins.html
And you can Google „convention plugin“ and will find a lot of resources for this.
m
Thanks for sharing. I know I can google that, and I did, but I found a bunch of resources that were old/outdated or subscriber only in Medium for example. I was just wondering if anybody here had one of those great articles that explain everything 🙂 but it’s OK if nobody has, I’ll just keep googling like you suggested
c
All the resources I found are from Gradle and not outdated 🤷‍♂️
☝️ 1
There is a Gradle community slack you can join. https://gradle.org/slack-invite/
n
I followed Now In Android repository for build logic. There are some links there pointing out to broader explanations behind the concept: https://github.com/android/nowinandroid/tree/main/build-logic
🙏 1
Briefly, convention plugins do eliminate messy if else conditions when we apply via
subprojects
approach. So you only apply a plugin for those who are demanding(inverse relationship) as well as centralizing gradle logic across the project
gratitude thank you 1