I have a project where one of the submodules uses ...
# gradle
l
I have a project where one of the submodules uses the preview vector API, so whenever the code is run, it needs a specific
-module
argument. Is there a way to specify this in the module's gradle file such that it is picked up by all dependent modules automatically? As it stands, I have to add it everywhere manually, and that's annoying.
v
go for convention plugins. It would become something as follows:
Copy code
plugins {
...
    id("uses-vector-api")
}
See https://melix.github.io/blog/2021/12/composition-in-gradle.html
l
Thanks. I'll take a look at it.