[suggestion] Generate `Projects.kt` file with all subprojects
See original GitHub issueI love using this plugin to manage external dependencies, but when setting up intra-project dependencies amongst subprojects of a single repo, I have to resort to using Stringly-typed values again with implementation(project(":..."))
. It would be really nice if this plugin could generate a solution for this problem as well.
My proposal is to generate a 3rd file, Projects.kt
, and in it generate functions for referencing each Gradle subproject as a dependency. It would be especially nice if this file used nested object
s to make it easier to reference.
I just hand-wrote this kind of file for my own project, and it seems to be working really well. Makes setting up and referencing my subprojects/groups of subprojects much easier, and it would be awesome to have this file generated automatically. The links below show sample usage of what this could look like, but I just threw this together and am open to any suggestions for better structure.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top GitHub Comments
Cool! Wait a bit that I’m done with issue #55 which includes quite a large refactoring. I will ping you
Le mer. 4 sept. 2019 à 16:54, Casey Brooks notifications@github.com a écrit :
This is still a good tip for people busing the
buildSrc
But this project will now focus on
:refreshVersions
See Long term plan: focus on refreshVersions · Issue #104 ·