This message was deleted.
# community-support
s
This message was deleted.
s
i'm trying to do this:
Copy code
val depAction = Action<Any>  {
          println("helloworld")
        }

        for (subproject in project.subprojects()) {
          subproject.getPlugins().withId("com.hyperscience.gradle.docker.DockerImage", depAction)
        }
and the error i'm seeing looks like this:
Copy code
None of the following functions can be called with the arguments supplied:
public abstract fun subprojects(p0: Closure<(raw) Any!>): Unit defined in org.gradle.api.Project
public abstract fun subprojects(p0: Action<in Project!>): Unit defined in org.gradle.api.Project
m
just do
withId("...") { println("hello") }
s
i think i'm actually very far off here i should have,
Copy code
for (p in project.subprojects) {
...
}
but
subprojects
is unexpectedly empty for all my projects
i have this declared in one of my projects,
Copy code
dependencies {
    dockerBuild(project(path=compiled_packages, configuration="dockerBuild"))
}
it's slowly dawning on my that i have no idea what i'm doing 😄
i have a plugin that sets up explicit task dependencies and i want to get away from that, and use proper cross project publications
v
To begin with, read the JavaDoc of
getPlugins()
and learn that you instead should use
getPluginManager()
😉 Also, is
com.hyperscience.gradle.docker.DockerImage
really a plugin id, that you use in
plugins { ... }
block? Looks more like a FQCN of a task.
s
thanks yes, it really is a plugin id. did i organize it in the wrong spot?