This message was deleted.
# kotlin-dsl
s
This message was deleted.
b
If I understand your question correctly, I think I’m doing the same thing here. https://github.com/bthode/kafkagram Telegram-model is used in other projects.
p
So the solution would be to have a project with only dependencies and no code and to import it in every subproject, but then how can I import it in every subproject in only one declaration ?
v
You shouldn't. You can do what you want with a
subprojects { ... }
closure in the door project, but really, you shouldn't. Instead if it is just that one dependency and it is mainly about the centralized version, use a version catalog. If it is multiple dependencies, make a convention plugin that adds them and apply that plugin where you want it to have effect, but directly in the build script.
p
Okay I see, thanks !