This message was deleted.
# plugin-development
s
This message was deleted.
v
Can you elaborate what you mean? You apply a plugin to the root project. The plugin adds an extension to the root project. And now you want what?
d
In submodules, I want to then be able to specify
Copy code
arch2 {
    view {
    ...
    }
}
and in my Arch2Extension, inject
Project
as I do now, but have it represent the submodule instead of the root project where the plugin was initially applied.
So right now in the Arch2Extension I have
Copy code
abstract class Arch2PluginExtension @Inject constructor(
    private val target: Project,
) {
...
}
but this Project is the root of the project instead of the submodule where
arch2
is found
Ah, maybe I'm meant to change the plugin to target.subprojects.forEach { it.extensions.create(...) }
Yeah, that worked