Hello. Is there a way to do dependency management ...
# gradle
h
Hello. Is there a way to do dependency management with buildSrc but for multiple gradle projects? Extract it into a plugin or setup shared buildSrc dir? https://handstandsam.com/2018/02/11/kotlin-buildsrc-for-better-gradle-dependency-management
g
Maybe just release own plugin and use it across multiple projects. Because builfSrc is almost like a local plugin, but applied by default
h
Can I include properties into plugin that would work with autocomplete?
The goal is to when I want to include some dependency in some project that I already have in this common module, I write in my depenencies clousure "Deps.okhttp", and it autocompletes me dependencies that match this.
g
Of, course plugin classes just available if you applied plugin to a project
Not sure what do you mean "dependency in common module"
h
That module where I would store all my dependencies as described in the link I posted.
The main goal is sharp autocomplete. buildSrc does that
g
It's not a module. Plugin can work like this shared code with your Deps class, you will get autocomplete. But you need to publish new version of plugin each time when you want to update dependency version or add a new one