Open lkoe opened 2 years ago
Thanks for the report. The limitations of Gradle's configuration cache may be too severe here and this might not be something that it's possible to support. We can take a look, but I'm not too hopeful. In the meantime, you may be able to avoid the problem by disabling customization of the generated pom. This, of course, may mean that the pom no longer meets your needs. If that's the case, you may also want to consider investigating Gradle's built-in platform support as a replacement for this plugin.
I tested disabling the pom customizations as suggested, unfortunately it doesn't help with this issue.
I suppose thats because StandardPomDependencyManagementConfigurer
is still being added as POM customization and only it's internal logic affected by the flag.
When using the following snippet to package the generated Maven POM into the jar a configuration cache issue comes up:
From the configuration cache report:
It seems that
StandardPomDependencyManagementConfigurer
is holding unsupported state in fieldsdependencyManagement
,pomResolver
andproject