mapstruct-idea icon indicating copy to clipboard operation
mapstruct-idea copied to clipboard

[Feature Request] Support for mapstruct-spi-protobuf

Open 91wzhang opened this issue 3 years ago • 0 comments

Protobuf is widely used in the industry and often we need to convert proto generated classes to/from POJOs (or models generated by Lombok/AutoValue/Immutables/YouNameIt).

While it would be awesome for MapStruct to provide out of the box integration with Protobuf like Lombok. Before that it seems that the next best choice is to use this SPI https://github.com/entur/mapstruct-spi-protobuf.

This SPI solves the compile time problem where MapStruct thinks there are unmapped target properties.

However the Idea plugin is not recognizing the SPI and still shows a warning. It would be super nice the plugin would match the complier's behaviour in that.

91wzhang avatar Jul 14 '22 22:07 91wzhang