mapstruct / mapstruct/mapstruct-examples
Mapstruct issue on Eclipse (1.4.2.Final)
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.4k
- Forks
- 504
- PR merge metrics
- No merged PRs in 30d
Description
I have an issue to setup Mapstruct on eclipse (Version: 2021-03 (4.19.0), Build id: 20210312-0638) with following gradle setting:
implementation "org.mapstruct:mapstruct:$mapstructVersion"
annotationProcessor "org.mapstruct:mapstruct-processor:$mapstructVersion"
annotationProcessor "org.projectlombok:lombok-mapstruct-binding:0.2.0"
annotationProcessor "org.projectlombok:lombok"
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
It seems it doesn't generate .factorypath when I tried to run gradle tasks: cleanEclipse and eclipse
It works and everything is fine if I add follow gradle plugin:
plugins {
id 'java'
id 'eclipse-wtp'
id 'org.springframework.boot' version '2.3.12.RELEASE'
id 'io.franzbecker.gradle-lombok' version '4.0.0'
id 'net.ltgt.apt-eclipse' version '0.21'
}
But there is a drawback that this net.ltgt.apt-eclipse doesn't work on gradle 7.1.1 and I need to use the older version gradle-6.9
However developers like me prefer to install MapStruct Eclipse Plugin and it's supposed to make things work around without require developers to add net.ltgt.apt-eclipse
I look forward to this potential fix.
Regards.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the setup with the listed Gradle settings and the cleanEclipse and eclipse tasks, comparing Gradle 7.1.1 with the working Gradle 6.9 and net.ltgt.apt-eclipse plugin. Investigate the Eclipse and annotation-processing configuration; done means the required .factorypath is generated without that plugin and MapStruct works in Eclipse.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100