Hello,
I’m facing a very odd issue in my gradle multi-module project. It is set up like this:
(root)
- build-logic (included build)
- convention plugin
- other plugin using the testcontainers library, containing a task that starts a container
- submodule
I am applying both plugins in submodule
. The convention plugin is applied in the root project.
When I run the task to start the container, I am seeing a NPE when handling the deserialized response from the docker engine. After some debugging, I found out that the root cause of the NPE seems to be that the @JsonProperty annotation is not respected, leaving the response object with mostly null values.
However when I remove the convention plugin from the root project, the issue is fixed and the container starts properly. The issue is also fixed when I remove the dependency to the Micronaut Gradle plugin from the convention plugin.
I’m relatively inexperienced when it comes to multi-module gradle projects. I could understand if both plugins in one submodule interfere with each other, but having the plugin in the root project interfere with the build of a submodule is surprising to me.
I’d appreciate if anyone could me point into the right direction as to what might go wrong here.
Thanks,
Tobias