The only difference i can see is the com.google.protobuf plugin and i am seeing these warnings where i don't see them in the maven implamentation:
/mapper/UserMapper.java:48: warning: Unmapped target properties: "mergeFrom, clearField, clearOneof, idBytes, emailBytes, removeMainDepartments, removeDepartments, unknownFields, mergeUnknownFields, allFields, permissionsValueList, mainDepartmentsOrBuilderList, mainDepartmentsBuilderList, departmentsOrBuilderList, departmentsBuilderList". UserDTO map(User user); ^ /mapper/UserMapper.java:62: warning: Unmapped target properties: "mergeFrom, clearField, clearOneof, nameBytes, unknownFields, mergeUnknownFields, allFields". DepartmentDTO map(Department department); ^ 2 warnings
since https://github.com/mapstruct/mapstruct-examples/pull/34 is still out i went ahead and added a protobuf example for gradle as well.
The only difference i can see is the com.google.protobuf plugin and i am seeing these warnings where i don't see them in the maven implamentation:
/mapper/UserMapper.java:48: warning: Unmapped target properties: "mergeFrom, clearField, clearOneof, idBytes, emailBytes, removeMainDepartments, removeDepartments, unknownFields, mergeUnknownFields, allFields, permissionsValueList, mainDepartmentsOrBuilderList, mainDepartmentsBuilderList, departmentsOrBuilderList, departmentsBuilderList". UserDTO map(User user); ^ /mapper/UserMapper.java:62: warning: Unmapped target properties: "mergeFrom, clearField, clearOneof, nameBytes, unknownFields, mergeUnknownFields, allFields". DepartmentDTO map(Department department); ^ 2 warnings