is there some way to add a subproject interactivel...
# gradle
m
is there some way to add a subproject interactively to an existing gradle project (like with
gradle init
(or some non-interactive command)? or do I have to do it manually? (I could create one somewhere else, then copy it and fix the graddle.settings, but that's another story)
1
v
Well, it's just adding one line in
settings.gradle(.kts)
and adding one
build.gradle(.kts)
. I guess it would be overkill to have a utility for that. And if you follow idiomatic patterns, you will apply probably 1 or 2 convention plugins in that build script and maybe add some dependencies.
☝️ 1
j
If you want to automatically create a module with multiple kt files plus kts file, it is trivial by just creating your gradle task
but as @Vampire said, it has sense if you add a lot of base files, for just a folder and two one line files is not worth
m
got it, thanks