Open guillermocalvo opened 3 years ago
Have you tested your "possible" workaround?
I have had success using the pattern you're describing with @RequiredArgsConstructor
in spring, and was hoping to get it to work with micronaut too. Looking at my compiled classes, it looks like it should work.
Micronaut: 3.6.3 Lombok: 1.18.24 java: 17
Related to: #40
MicronautApplicationPlugin
does not support Lombok when it's added through the Lombok Gradle Plugin (which is recommended by the official website):Steps to Reproduce
For example, when a bean constructor is replaced with
@RequiredArgsConstructor
then Micronaut fails to instantiate it.Stacktrace
Possible Workaround
Replace Lombok Gradle Plugin with plain old dependencies:
However, it would be nice if the Lombok Gradle Plugin could be used in conjunction with Micronaut.
Environment Information
Example Application