The new default order is `Ordered.LOWEST_PRECEDENCE - 1` to make sure
the advice is applied before other advices with
`Ordered.LOWEST_PRECEDENCE` order (e.g. an advice responsible for `@Transactional` behavior).
In many other Spring and Spring Boot projects, the license and notice files are included in the jar file under META-INF.
In this Spring project, the two files should also be added to the jar.
* add notice and license to jar
* Update NOTICE.txt
Fixes https://github.com/spring-projects/spring-retry/issues/328
The loop in the `RecoverAnnotationRecoveryHandler.isParameterizedTypeAssignable`
only checks the first type argument of the `ParameterizedType` and returned.
When there are two type arguments, the result will be wrong.
* Fix `RecoverAnnotationRecoveryHandler.isParameterizedTypeAssignable` to continue matching
for next generic arguments
Fixes https://github.com/spring-projects/spring-retry/issues/324
Using the annotation `@CircuitBreaker` with Spring Framework 6 leads to the following warning:
```
WARN org.springframework.core.annotation.AnnotationTypeMapping [main] : Support for convention-based annotation attribute overrides is deprecated and will be removed in Spring Framework 6.1. Please annotate the following attributes in @org.springframework.retry.annotation.CircuitBreaker with appropriate @AliasFor declarations: [include, maxAttempts, noRetryFor, maxAttemptsExpression, notRecoverable, exclude, exceptionExpression, label, retryFor]
```
* Provide a respective fix for `@CircuitBreaker` annotation.
* Deprecated attributes which are deprecated already in the `@Retriable`
* Fix `SimpleRetryPolicy` for NPE when `context.getLastThrowable()` is `null`
Set `NO_RECOVERY` if it cannot retry and that exception is null
* Fix `RecoverAnnotationRecoveryHandlerTests` for a proper return value
in the composite `recoverByComposedRetryableAnnotationName` annotation test
* fix(Retryable): allow composing `Retryable` annotation with recover argument annotated with @AliasFor by using `AnnotatedElementUtils.findMergedAnnotation` in `AnnotationAwareRetryOperationsInterceptor`
* Updated README.md with example and explanation for custom annotation composition with @Retryable
Added author and fix import style.
* Updated README.md removed version 2.0 mention on the Further customizations section
Resolves https://github.com/spring-projects/spring-retry/issues/231
Enhance `RetryListener` to allow it to examine the result to determine
whether the call should be accepted, or retried according to the retry
policy.
* Restore missing period in doc.