This message was deleted.
# community-support
s
This message was deleted.
s
You could try using the
subprojects
block?
šŸ‘€ 1
Although I’m not fond of a root level configuration for publishing setups. You could create a method at the root project which takes a project and configures its publishing and then call the method from each of the projects you want to publish?
āœ… 1
Alternatively creating something in buildSrc would also work.
s
Using the
subprojects
block worked, thanks. However, I agree with you on not putting the publish config on the root level. I think I'd go with putting it in buildSrc.
v
Actually, you should put nothing in
allprojects { ... }
or
subprojects { ... }
that's a legacy antipattern. Instead create convention plugins in an included build or if you prefer
buildSrc
and apply it where you want its effect.
āž• 1