From 279b911193703cd7b4d49c4283e7602eb525f1f6 Mon Sep 17 00:00:00 2001 From: Peeter Karolin <43540664+tw-peeterkarolin@users.noreply.github.com> Date: Fri, 5 Apr 2024 12:38:33 +0300 Subject: [PATCH] Create BeanPostProcessor beans in static methods (#197) --- CHANGELOG.md | 4 ++++ gradle.properties | 2 +- .../jobs/autoconfigure/TwTasksExtJobsAutoConfiguration.java | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e698d33a..d1d9a20c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +#### 1.41.5 - 2024/04/05 +### Changed +* Use static methods to create BeanPostProcessors. + #### 1.41.4 - 2024/04/02 ### Changed - `/getTaskTypes` endpoint accepts optional query parameter `status` to filter only types of tasks in the particular status(es). diff --git a/gradle.properties b/gradle.properties index b5938142..325d1196 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ -version=1.41.4 +version=1.41.5 org.gradle.internal.http.socketTimeout=120000 diff --git a/tw-tasks-jobs-spring-boot-starter/src/main/java/com/transferwise/tasks/ext/jobs/autoconfigure/TwTasksExtJobsAutoConfiguration.java b/tw-tasks-jobs-spring-boot-starter/src/main/java/com/transferwise/tasks/ext/jobs/autoconfigure/TwTasksExtJobsAutoConfiguration.java index 0b759422..94484450 100644 --- a/tw-tasks-jobs-spring-boot-starter/src/main/java/com/transferwise/tasks/ext/jobs/autoconfigure/TwTasksExtJobsAutoConfiguration.java +++ b/tw-tasks-jobs-spring-boot-starter/src/main/java/com/transferwise/tasks/ext/jobs/autoconfigure/TwTasksExtJobsAutoConfiguration.java @@ -34,7 +34,7 @@ public JobsProperties twTasksJobsProperties() { @Bean @ConditionalOnMissingBean(CronJobAnnotationProcessor.class) - public CronJobAnnotationProcessor cronJobAnnotationProcessor() { + public static CronJobAnnotationProcessor cronJobAnnotationProcessor() { return new CronJobAnnotationProcessor(); } } \ No newline at end of file