Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Oct 12, 2023

This PR contains the following updates:

Package Change Age Confidence
commons-io:commons-io (source) 2.18.02.21.0 age confidence
org.apache.maven.plugins:maven-remote-resources-plugin (source) 1.6.01.7.0 age confidence
org.apache.maven.plugins:maven-compiler-plugin (source) 3.8.13.14.1 age confidence
org.awaitility:awaitility (source) 4.0.34.3.0 age confidence
org.apache.commons:commons-csv (source) 1.81.14.1 age confidence
org.mapstruct:mapstruct-processor (source) 1.4.2.Final1.6.3 age confidence
org.mapstruct:mapstruct (source) 1.4.2.Final1.6.3 age confidence

Release Notes

awaitility/awaitility (org.awaitility:awaitility)

v4.3.0

  • Support for kotlin.time.Duration in Kotlin DSL (thanks to Ivo Šmíd for PR)

  • Upgraded kotlin version in the awaitility-kotlin module to 2.1.10

  • Using a more descriptive error message when using VERY long wait conditions or poll durations (issue 290)

  • Added an overloaded method of untilAsserted(..) that takes a supplier and a consumer. For example, lets say you have a class like this:
    public class MyClass {
    public String myFunction() {
    // Imagine stuff being executed in asynchronously here and the result of this
    // operation is a string called "my value"
    return "my value"
    }
    }

    // Then in your test you can wait for the "myFunction" to be asserted by a "consumer" that uses
    // assertj to make sure that "myFunction" returns ""my value"
    await().untilAsserted(myClass::myFunction, value -> Assertions.assertThat(value).isEqualTo("my value"));

    This has also been implemented for all atomic, adder, and accumulator methods.

v4.2.2

  • Support JDK EA builds in JavaVersionDetector (thanks to Oleg Estekhin for pull request)

v4.2.1

  • Upgraded Kotlin to 1.9.22

  • Added extension properties forever, then, and, given to the Kotlin extension. This allows you to do e.g.:

    await.forever until { .. }

  • Added shortcut for enabling logging. Before you had to do e.g.

    await()
    .with()
    .conditionEvaluationListener(new ConditionEvaluationLogger(log::info))
    .pollInterval(ONE_HUNDRED_MILLISECONDS)
    .until(logs::size, is(4));

    You can now instead use the "logging" shortcut:

    await()
    .with()
    .logging(log::info)
    .pollInterval(ONE_HUNDRED_MILLISECONDS)
    .until(logs::size, is(4));

    or simply ".logging()" for "System.out".

    This shortcut has also been added globally:

    Awaitility.setLogging(log::info);

    or

    Awaitility.setDefaultLogging();

  • Improved lambda detection for Java 17 and Java 21

  • Upgraded Groovy to 4.0.19

v4.2.0

  • Fixed a bug in the shutdown behavior of a polling thread. The wrong time unit was used causing executor shutdown to take way more time than expected in cases where it's stuck. Thanks to Claus Näveke for spotting this and for the initial PR.

  • Fixed a bug in which condition was not evaluated correctly with small intervals, such as:
    await().atMost(Duration.ofMillis(10)).pollInterval(Duration.ofMillis(5)).until(..);
    (issue 224). Thanks to Robby Decosemaeker for PR.

  • Upgraded the awaitility-kotlin module to use kotlin 1.6.10

  • Fail fast conditions can now be specified with assertions. For example:

    await().failFast(() -> assertThat(state).isNotEqualTo("Failed")).until(..);

    (issue 238)

v4.1.1

  • Fixed a bug preventing you to specify "fib(-1)" when using the fibonacci poll interval (thanks to Björn Michael for pull request) (issue 201)
  • Avoid memory leak by caching only the original default uncaught exception handler globally (thanks to Oliver Grof for pull request (issue 221)
  • Added "conditionEvaluationListener" to Kotlin DSL

v4.1.0

  • Upgraded to Scala from 2.13.3 to 2.13.5 (thanks to sullis for pull request)

  • Upgraded Kotlin from 1.3.72 to 1.5.0

  • Added support for fail-fast conditions. This is a special condition that, if fulfilled, will throw a "org.awaitility.core.TerminalFailureException" immediately, thus failing the test.
    This is good when you have a condition that you know beforehand should never be fulfilled. So instead of waiting the full duration of a normal condition evaluation period, the test will fail
    faster if this (fail fast) condition evaluates to true. For example:

    await().timeout(Duration.ofSeconds(5)).failFast(() -> orders.findById(1234).state == PAID).until(() -> orders.findById(1234).state == CLOSED);

    This will fail-fast if the state of order 1234 is ever equal to "PAID" during the 5 second evaluation of the condition specified in "until".
    (Thanks to Antony Stubbs for initial pull request) (issue 178)

  • Upgraded Groovy from version 3.0.4 to 3.0.8

mapstruct/mapstruct (org.mapstruct:mapstruct-processor)

v1.6.3

Compare Source

Bugs
  • Redundant if condition in Java record mapping with RETURN_DEFAULT strategy (#​3747)
  • Stackoverflow with Immutables custom builder (#​3370)
  • Unused import of java.time.LocalDate when mapping source LocalDateTime to target LocalDate (#​3732)
Documentation
  • Add section to README.md comparing mapstruct with Java Records (#​3751)

v1.6.2

Compare Source

Bugs
  • Regression from 1.6.1: ClassCastException when using records (#​3717)

v1.6.1

Compare Source

Enhancements
  • Use Java LinkedHashSet and LinkedHashMap new factory method with known capacity when on Java 19 or later (#​3113)
Bugs
  • Inverse Inheritance Strategy not working for ignored mappings only with target (#​3652)
  • Inconsistent ambiguous mapping method error when using SubclassMapping: generic vs raw types (#​3668)
  • Fix regression when using InheritInverseConfiguration with nested target properties and reversing target = "." (#​3670)
  • Deep mapping with multiple mappings broken in 1.6.0 (#​3667)
  • Two different constants are ignored in 1.6.0 (#​3673)
  • Inconsistent ambiguous mapping method error: generic vs raw types in 1.6.0 (#​3668)
  • Fix cross module records with interfaces not recognizing accessors (#​3661)
  • @AfterMapping methods are called twice when using target with builder (#​3678)
  • Compile error when using @AfterMapping method with Builder and TargetObject (#​3703)
Behaviour change
Inverse Inheritance Strategy not working for ignored mappings only with target

Prior to this fix @Mapping(target = "myProperty", ignore = true) was being ignored when using @InheritInverseConfiguration.

e.g.

@​Mapper
public interface ModelMapper {

    @​Mapping(target = "creationDate", ignore = true)
    Entity toEntity(Model model);    

    @​InheritInverseConfiguration
    Model toModel(Entity entity);
}

In the example above prior 1.6.1 the Model toModel(Entity entity) was going to map the id property. In order to keep that behavior you'll need to explicitly do the mapping for it.

@​Mapper
public interface ModelMappe {
    @​Mapping(target = "creationDate", ignore = true) // NOTE: Handled by JPA.
    Entity toEntity(Model model);    

    @​InheritInverseConfiguration
    @​Mapping(target = "creationDate", source = "creationDate") // Allow reading from Entity
    Model toModel(Entity entity);
}

v1.6.0

Compare Source

Previous Release Notes

v1.5.5.Final

Compare Source

Enhancements
  • Add support for Jakarta XML Binding (#​2730)
Bugs
  • BeanMappingOptions#ignoreUnmappedSourceProperties are not inherited via @InheritConfiguration (#​3248) - Regression from 1.5.3
Documentation
  • jakarta-cdi component model not in docs (#​3236)
  • Polish links in docs (#​3214)

v1.5.4.Final

Compare Source

Enhancements
  • Support for Jakarta @ApplicationScoped is missing (#​2950)
Bugs
  • Exceptions declared to be thrown by a mapping method, are not declared in generated mapping methods for nested types (#​3142)
  • DeepClone mapping control not generating third tier functions to clone (#​3135)
  • missing throws clauses when mapping enum with checked exceptions (#​3110)
  • Version 1.5.3 doesn't consider Mapping annotations for nested objects (worked with 1.5.2) (#​3057)
  • Cannot use only BeanMapping#mappingControl (#​3040)
Documentation
  • Document <THROW_EXCEPTION> in the reference guide (#​3112)

v1.5.3.Final

Compare Source

Bugs
  • Generic @AfterMapping does not consider @MappingTarget properly in 1.5 (#​3036)
  • Method annotated with @AfterMapping is not called (#​2955)
  • Ignored unknown source property error, but property exist (#​2743)
  • SubclassMapping doesn't honour mappingControl (#​3018)
  • Upgrade from 1.4.1 to 1.5.2 broke primitive to wrapper classes mapping (#​2921)
  • Conversion of BigDecimal to primitive double wrong with 1.5.2 (#​2913)
  • Ambiguous mapping methods when upgrading to MapStruct 1.5.0.RC1 (#​2840)
  • SubclassMapping stackoverflow exception (#​2825)
  • Optional wrapping pattern broken in 1.5.2.Final (#​2925)
  • Missing import in generated mapper when referencing a nested enum from an unrelated class (#​2945)
  • Unused import warning of nested classes (#​2907)
  • Compilation error in generated code for @Conditional and collection (#​2937)
  • Missing import of nested class (#​2897)
  • Ignoring unmapped source properties in inverse inheritance (#​2949)
  • Compilation error when mapping fields with the same type due to not wrapping in a try-catch block (#​2839)
  • Using @TargetType as a parameter for @Condition causes NPE during compiling (#​2882)
  • Cannot map from a covariant (extends) generic type (#​2677)
Documentation
Build
  • Build fails when running mvn test on an M1 Mac (#​2922)

v1.5.2.Final

Compare Source

Enhancements
  • Add support for Java Text Blocks in expressions (#​2837)
Bugs
  • Generated code does not include enclosing class when referring to nested class (#​2880)
  • SubclassExhaustiveStrategy.RUNTIME_EXCEPTION option does not work if the superclass has a non-empty constructor #​2891
Build
  • Codecov no longer publishes information for commits (#​2870)

v1.5.1.Final

Compare Source

Bugs
  • NullPointerException when reporting errors for non Mappers (#​2867)

v1.5.0.Final

Compare Source

Bugs
  • Compilation error due to missing import with nested classes (#​2797)
  • MapStruct 1.5.0 generates invalid code when using @Condition on a presence check for a generic wrapper (#​2795)
  • No compile error when conditionExpression and expression are used together (#​2794)
  • No import is added to generated class when using @BeforeMapping on a used mapper (#​2807)
Documentation
  • Error in the readme ( what is MapStruct paragraph ) (#​2851)
  • Enhance documentation around SPI usage (#​2739)
Build
  • Update jacoco maven plugin to compile on Java 17 (#​2835)
Previous Release Notes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from a team as a code owner October 12, 2023 05:49
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch 2 times, most recently from 71193c6 to 60a5af7 Compare December 25, 2023 02:58
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch 2 times, most recently from 19404a5 to d21cf1a Compare March 21, 2024 00:00
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch 2 times, most recently from 15dd0ff to 67fd3e5 Compare May 3, 2024 02:40
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch 15 times, most recently from 420dea9 to 5d68020 Compare August 13, 2024 07:01
@codecov
Copy link

codecov bot commented Aug 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.33%. Comparing base (f406a59) to head (5d68020).
Report is 20 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master      #53      +/-   ##
============================================
- Coverage     74.42%   74.33%   -0.09%     
- Complexity      587      595       +8     
============================================
  Files           149      151       +2     
  Lines          2937     2954      +17     
  Branches        140      141       +1     
============================================
+ Hits           2186     2196      +10     
- Misses          636      642       +6     
- Partials        115      116       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch 3 times, most recently from 26a1230 to b66a353 Compare August 27, 2024 12:22
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch 3 times, most recently from 41d7510 to 73aed8c Compare September 20, 2024 05:57
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch from 73aed8c to cc10a71 Compare September 25, 2024 05:21
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch from cc10a71 to b2a56d7 Compare September 26, 2024 08:34
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch 2 times, most recently from 9c20ddb to 4366ecd Compare October 21, 2024 12:47
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch from 4366ecd to cd5d266 Compare October 28, 2024 20:32
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch 2 times, most recently from ac360e9 to 895c5db Compare November 12, 2024 07:48
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch from 895c5db to 0cd7c28 Compare January 12, 2025 11:01
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch from 0cd7c28 to 98e5733 Compare February 5, 2025 04:12
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch from 98e5733 to cb9cf65 Compare February 22, 2025 04:07
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch from cb9cf65 to d289534 Compare March 21, 2025 07:49
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch from d289534 to d70b9b2 Compare March 29, 2025 11:36
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch from d70b9b2 to 00d7e09 Compare April 26, 2025 04:04
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch from 00d7e09 to 4480844 Compare May 24, 2025 07:56
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch from 4480844 to 549a059 Compare June 3, 2025 11:55
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch from 549a059 to 4f175a0 Compare July 21, 2025 00:01
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch 6 times, most recently from 7a37dd8 to c1a3d02 Compare August 6, 2025 10:39
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch 3 times, most recently from 3644e7a to 47f5ee3 Compare August 29, 2025 10:26
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch from 47f5ee3 to 7cdc0e3 Compare September 22, 2025 08:10
@renovate renovate bot force-pushed the renovate/all-maven-minor-patch branch from 7cdc0e3 to f8e087a Compare November 8, 2025 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant