s'pThe bean 'versionTask' could not be injected as a XX because it is a JDK dynamic proxy that implements
时间: 2024-05-28 21:10:05 浏览: 144
Spectral Properties of the Micromaser Injected with Λ-type Three-level Atoms
the interface org.gradle.api.DefaultTask and not marked as proxyable. This means that Gradle cannot generate a subclass of this class at runtime to add the mixin. To solve this issue, you can try one of the following approaches:
1. Use a concrete class instead of an interface for the task implementation.
2. Use a class that implements the interface and is marked as proxyable.
3. Use a custom task class that extends the DefaultTask class and implements the required interface.
阅读全文