Filip Hrisafov
9247c5d7fb
#2870 Use codecov action v2
2022-06-05 13:22:37 +02:00
Filip Hrisafov
4c9aa00369
Update readme with latest released 1.5.1.Final release
2022-06-05 08:53:10 +02:00
Filip Hrisafov
20e97714d4
[maven-release-plugin] prepare for next development iteration
2022-06-05 08:42:56 +02:00
Filip Hrisafov
ec9288ce66
[maven-release-plugin] prepare release 1.5.1.Final
1.5.1.Final
2022-06-05 08:42:55 +02:00
Filip Hrisafov
46b78bfe59
#2867 Fix NPE when reporting message on parent mappers
2022-06-05 08:35:31 +02:00
Filip Hrisafov
0726563024
Update readme with latest released 1.5.0.Final release
2022-06-02 23:30:17 +02:00
Filip Hrisafov
5efe5e291c
[maven-release-plugin] prepare for next development iteration
2022-06-02 23:11:41 +02:00
Filip Hrisafov
efa11ba312
[maven-release-plugin] prepare release 1.5.0.Final
1.5.0.Final
2022-06-02 23:11:41 +02:00
Filip Hrisafov
a1a0786cf2
#2846 Add test case showing that everything works as expected
2022-06-02 22:14:42 +02:00
Zegveld
0559c47c21
#2739 Enhance documentation around SPI usage
2022-05-30 21:51:57 +02:00
Filip Hrisafov
c945ccd628
#2835 Upgrade jacoco-maven-plugin to latest 0.8.8 to support Java 17
2022-05-30 21:50:13 +02:00
Filip Hrisafov
9769f51756
#2851 Fix typo in readme
2022-05-30 21:49:57 +02:00
Hao Zhang
a4162809a4
Doc: correct the annotation processor version ( #2859 )
...
The lombok-mapstruct-binding anotation procossor version given by document will result a compile problem, correct it by the example repository so that work fine
2022-05-28 11:37:21 +02:00
Zegveld
437a70d6df
#2807 : Include LifeCycleMethod importTypes in the list of importTypes. ( #2808 )
...
Co-authored-by: Ben Zegveld <Ben.Zegveld@gmail.com>
2022-04-08 20:57:40 +02:00
Filip Hrisafov
6604617730
#2794 Compile error when condition expression used with constant or expression
2022-04-03 15:20:00 +02:00
Zegveld
03d44b5a87
#2795 : use 'includeModel' for the 'sourcePresenceCheckerReference' in the 'UpdateWrapper'. ( #2796 )
...
* #2795 : use 'includeModel' for the 'sourcePresenceCheckerReference' in the 'UpdateWrapper'.
* Simplify the tests
Co-authored-by: Ben Zegveld <Ben.Zegveld@gmail.com>
Co-authored-by: Filip Hrisafov <filip.hrisafov@gmail.com>
2022-04-02 18:55:06 +02:00
Zegveld
2473c3eaaa
#2797 : Add the nested type import types in the NestedPropertyMappingMethod
...
* #2797 : Reproduction scenario
* Add the nested type import types in the NestedPropertyMappingMethod
Co-authored-by: Ben Zegveld <Ben.Zegveld@gmail.com>
Co-authored-by: Filip Hrisafov <filip.hrisafov@gmail.com>
2022-04-02 11:59:25 +02:00
dependabot[bot]
07eeea6bc9
Bump spring-beans from 5.3.15 to 5.3.18 in /parent
...
Bumps [spring-beans](https://github.com/spring-projects/spring-framework ) from 5.3.15 to 5.3.18.
- [Release notes](https://github.com/spring-projects/spring-framework/releases )
- [Commits](https://github.com/spring-projects/spring-framework/compare/v5.3.15...v5.3.18 )
---
updated-dependencies:
- dependency-name: org.springframework:spring-beans
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-04-02 11:25:14 +02:00
Filip Hrisafov
08a0313840
[maven-release-plugin] prepare for next development iteration
2022-03-21 08:14:09 +01:00
Filip Hrisafov
7e00af6ff4
[maven-release-plugin] prepare release 1.5.0.RC1
1.5.0.RC1
2022-03-21 08:14:08 +01:00
Filip Hrisafov
190b486b79
Add users that have contributed post 1.5.0.Beta2 to copyright.txt
2022-03-19 12:09:30 +01:00
Chris DeLashmutt
ab52867831
#2748 Support mapping map keys with invalid chars for methods
2022-03-19 11:51:19 +01:00
Filip Hrisafov
ad00adfa86
#2538 Allow using 2 step mappings with only one of the 2 methods being qualified
2022-03-12 23:57:17 +01:00
Zegveld
0a69492983
#2755 : use raw Type when calling a static method. ( #2762 )
2022-03-12 18:02:01 +01:00
Zegveld
b6a3aa1512
#2758 : fallback to param.variableName if ext.targetBeanName is not present in MethodReference handling. ( #2759 )
2022-03-12 18:01:15 +01:00
Filip Hrisafov
0b2c7e58b2
Add Christian Kosmowski to the copyright.txt
2022-02-23 15:55:20 +01:00
Zegveld
9b434f80f8
#2715 : Updated documentation to reflect impact of conditions on update mappers. ( #2740 )
...
* #2715 : added an example with an update mapper for Conditional behavior.
2022-02-06 20:05:42 +01:00
Zegveld
7bb85d05c0
2696: Invert @SubclassMappings
with @InheritInverseConfiguration
. ( #2708 )
...
* #2696 : Added support for '@InheritInverseConfiguration' with '@SubclassMappings'.
* #2696 : Overriding of inverse inheritence implemented. New order has preference over inherited order.
2022-02-06 20:03:23 +01:00
Filip Hrisafov
2a2c11e871
#2629 Use ModuleElement when getting type element
...
Prior to this MapStruct would only use `Elements#getTypeElement`.
With this PR if the mapper being generated is within a module MapStruct will use that module
for the methods that are needed (getTypeElement and getPackageElement).
Adapt the build to require a minimum Java 11 for building the processor module.
Adapt the GitHub actions to properly run integration tests with Java 8
Ignore Java 9 usages for the animal-sniffer-plugin
2022-01-30 20:52:22 +01:00
Filip Hrisafov
37835a5607
#2677 Use type without bounds when looking for read / presence accessor in a SourceReference
2022-01-30 20:49:05 +01:00
Filip Hrisafov
12070186a4
#2567 Add support for Jakarta Injection
...
Support for Jakarta is done in 2 ways:
* current jsr330 component model - In this case Jakarta Inject will be used if javax.inject is not available
* new jakarta component model - In this case Jakarta Inject will always be used
2022-01-30 13:31:50 +01:00
Filip Hrisafov
aed3ff5295
#1997 Use builders to construct empty objects in update wrapper
2022-01-30 12:38:42 +01:00
Filip Hrisafov
464adc9143
#2682 Change RetentionPolicy of @DecoratedWith
to CLASS
...
In some circumstances (used with other types of aggregating processors, e.g. Spring)
the Gradle incremental compilation works correctly only for classes annotated with the `CLASS` or `RUNTIME`
retention policy.
The `@DecoratedWith` is the only annotation from MapStruct that was `SOURCE` retention.
With this commit we are changing its retention policy in order for better compatibility with the Gradle Incremental compilation
2022-01-29 17:03:03 +01:00
Filip Hrisafov
5f4d355838
#1661 Add support for globally disabling builders
2022-01-29 11:46:34 +01:00
Filip Hrisafov
aade31f095
#2468 Update needed dependencies for running CDI tests on Java 16+
2022-01-29 11:25:40 +01:00
Filip Hrisafov
20ff51ebb8
#2728 Add new WithTestDependency annotation for our processor testing
...
Adding this dependency allows us to dynamically pick the dependencies that we want to have on the test compilation classpath.
It would allow us to more granularly test things with different dependencies, such as javax inject and jakarta inject
2022-01-29 11:13:16 +01:00
Filip Hrisafov
ec30f5d279
#2725 Update tools-gem to 1.0.0.Alpha3 and run GitHub Action with Java 19-ea
...
Also update Spring to 5.3.15 to be able to run on Java 19
2022-01-29 11:03:44 +01:00
Zegveld
9105041522
#2668 : Added support for collections and maps with a no-args constructor ( #2671 )
...
#2668 : Added support for collections and maps with a no-args constructor. Added a compiler error in case of a collection or map without either a no-arg constructor or a copy constructor.
2022-01-29 00:37:24 +01:00
Justyna
b22efd9ad7
#2674 : Add check if method without implementation doesn’t have @AfterMapping
/ @BeforeMapping
annotation
2022-01-24 14:17:24 +01:00
Goni-Dev
0a8e9b738c
#2709 Corrected description for example demonstrating default expression
2022-01-23 17:26:21 +01:00
dependabot[bot]
0f297ae60f
Bump protobuf-java from 3.6.0 to 3.16.1 in /parent
...
Bumps [protobuf-java](https://github.com/protocolbuffers/protobuf ) from 3.6.0 to 3.16.1.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases )
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/master/generate_changelog.py )
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.6.0...v3.16.1 )
---
updated-dependencies:
- dependency-name: com.google.protobuf:protobuf-java
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-01-22 13:24:54 +01:00
Ben Zegveld
277b6f5d2b
#2719 : added a note at the builder documentation to point towards the Before-/AfterMapping documentation.
2022-01-22 13:12:06 +01:00
Filip Hrisafov
59c5f40ac3
#2686 Add documentation about when mappers are injected
2022-01-18 18:22:47 +01:00
Filip Hrisafov
f7f65ac1de
#2687 Add documentation for NullValueMappingStrategy for collections and maps
2022-01-15 10:34:37 +01:00
Valentin Kulesh
42cfa05c40
#2704 Fix broken reference to constants within nested enums
2021-12-26 11:22:05 +01:00
Ben Zegveld
0a7b8134d4
#2689 : documentation: fix example title.
2021-12-25 11:50:48 +01:00
Filip Hrisafov
930b07aab8
[maven-release-plugin] prepare for next development iteration
2021-12-12 12:48:56 +01:00
Filip Hrisafov
0de10ca83c
[maven-release-plugin] prepare release 1.5.0.Beta2
1.5.0.Beta2
2021-12-12 12:48:55 +01:00
Zegveld
ea45666d66
#2673 : Fix optional wrapping pattern throwing exception when primitive types are present
...
MethodMatcher incorrectly reported that a primitive type matches a candidate for a type var
2021-12-11 14:16:19 +01:00
Filip Hrisafov
5de813c16f
#2666 Presence Check should be applied to source parameters when used in @Mapping
2021-12-04 12:37:15 +01:00