Open bsara opened 6 years ago
Maybe you could ask in the Kotlin forum, user group etc. what's the correct way for passing processor arguments?
I had the same problem here with a kotlin/mapstruct/gradle projekt and ended up here. Finally I found a solution which I wanted to share:
kapt {
correctErrorTypes = true
arguments {
arg("mapstruct.defaultComponentModel", "spring")
arg("mapstruct.unmappedTargetPolicy", "ERROR")
}
}
for kapt in maven here is working solution - working on mapstruct 1.3.0.Final
`
thanks @hemeroc & @hellxcz
Can we get added to the
pom.xml
file in the kotlin example some configuration arguments?Right now I have the following and it's not working...because
kapt
is being used rather than the maven compiler plugin for annotation processing (and after a lot of googling and searching, I can't find anything on howkapt
processor args are meant to be formatted when using maven):