Open dzwicker opened 8 years ago
This error is caused because your root project does not have a default
configuration. This configuration is created by the gradle base plugin (for java projects this is usually applied by the gradle java plugin).
So one solution is to apply the base
plugin in your root project to get the default
configuration. Then your subproject dependency should be resolved correctly.
I think a preferable solution would be to use the latest
tag for docker images created from subprojects. This has the added benefit of being able to update the subproject and recreate the container with those changes without having to rerun generateDockerCompose
.
I have defined a dependency of type
docker project(':sub')
which builds a docker image in my docker-compose module. When building the docker-compose project i get the following stacktrace:I can see in the debugger that at DockerComposePlugin.groovy:41 the dependencies for the docker configuration exist as defined but not of type
docker
.Is it possible that you forgot to create the artifacts in the
PalantirDockerPlugin
around line 65? There only the zip artifact is created. So gradle tries to define the dependencies with some default?