bmuschko/gradle-docker-plugin

Incompatible with Avro/Lombok plugins

austek opened this issue · 2 comments

austek commented

Unable to load the project when multiple modules are using the plugin and at least one of the modules is using either/both of the following plugins

  • com.github.davidmc24.gradle.plugin.avro
  • io.freefair.lombok

Expected Behavior

running ./gradlew dockerBuildImage build two docker images

Current Behavior

./gradlew clean dockerBuildImage

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':stock'.
> Could not create task ':stock:dockerBuildImage'.
   > Cannot set the value of task ':stock:dockerBuildImage' property 'dockerClientService' of type com.bmuschko.gradle.docker.internal.services.DockerClientService using a provider of type com.bmuschko.gradle.docker.internal.services.DockerClientService.

here is a build scan https://scans.gradle.com/s/iwbfxycgg4cbc

Context

Tying to build a docker image for each module

Steps to Reproduce (for bugs)

a self-contained example project is at https://github.com/austek/event-service

Your Environment

This is produced both on

  • MacOS Ventura 13.6.2/Apple M1 pro/ 32 GB
  • Jenkins/ Ubuntu

See the note in the documentation here: https://bmuschko.github.io/gradle-docker-plugin/current/user-guide/#applying_the_plugin_using_the_plugin_dsl. You need to apply the plugin in a specific way when using it in a multi-project build. That's a limitation of Gradle.

Closing as I didn't get any more response on the issue.