question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Quarkus fails with Mapstruct (Kapt + Kotlin)

See original GitHub issue

Describe 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:

  1. use kotlin("kapt") version "1.4.10" (kotlin gradle-DSL)
  2. implement the newest version of mapstruct:
    implementation("org.mapstruct:mapstruct:1.4.1.Final")
    kapt("org.mapstruct:mapstruct-processor:1.4.1.Final")
  1. Generate a random Mapper

Configuration

# Add your application.properties here, if applicable.
Nothing special here

Screenshots grafik

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

  1. Downgrading from Kotlin 1.4.20 to 1.3.70 didn’t help
  2. Changing the mapstruct version didn’t help

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:31 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
evanchoolycommented, Oct 12, 2021

This seems to be the fix we’ve all been waiting for.

https://youtrack.jetbrains.com/issue/KT-45545

3reactions
ntkoopmancommented, Apr 15, 2021
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found