Quarkus fails with Mapstruct (Kapt + Kotlin)
See original GitHub issueDescribe the bug The kaptKotlin plugin fails after upgrading from 1.0.3Final to 1.0.4Final and newer.
Expected behavior Kapt should generate mappers of the interfaces that have annotated the annotation mapper.
Actual behavior The build failes.
To Reproduce Follow the following steps nothing special.
Steps to reproduce the behavior:
- use
kotlin("kapt") version "1.4.10" (kotlin gradle-DSL)
- implement the newest version of mapstruct:
implementation("org.mapstruct:mapstruct:1.4.1.Final")
kapt("org.mapstruct:mapstruct-processor:1.4.1.Final")
- Generate a random Mapper
Configuration
# Add your application.properties here, if applicable.
Nothing special here
Screenshots
Additional context In the older Version (1.0.3Final) nothing was wrong and everything worked fine.
Example Project https://github.com/oberstrike/polit-me-quarkus
News
- Downgrading from Kotlin 1.4.20 to 1.3.70 didn’t help
- Changing the mapstruct version didn’t help
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:31 (8 by maintainers)
Top Results From Across the Web
MapStruct is not generating implementation classes
I have come across this issue. In my case gets this error: Java: No implementation was created ...
Read more >mapstruct/mapstruct-users - Gitter
Final") I am facing this exception: Execution failed for task ':kaptKotlin'. A failure occurred while executing org.jetbrains.kotlin.gradle.
Read more >MapStruct and Quarkus - a match made in heaven?
Obviously, the internally used classes should not be exposed, but a DTO will be created and filled with information from a MapStruct mapper....
Read more >Problems encountered in migrating small microservices from ...
all-open; No-arg; Kapt; Lombok plugin. Cook Spring. Features. Kotlin with Hibernate; Kotlin with Jackson; Kotlin with MapStruct; Kotlin with ...
Read more >chore(deps): update dependency io.quarkus:quarkus ... - GitLab
An error occurred while retrieving approval data for this merge request. chore(deps): update dependency io.quarkus:quarkus ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This seems to be the fix we’ve all been waiting for.
https://youtrack.jetbrains.com/issue/KT-45545
upstream issue: https://youtrack.jetbrains.com/issue/KT-43678