Skip to main content

8.47.1 release (2025-02-21)

Total recipe count: 3069

info

This changelog only shows what recipes have been added, removed, or changed. OpenRewrite may do releases that do not include these types of changes. To see these changes, please go to the releases page.

New Recipes

Removed Recipes

  • io.moderne.recipe.hibernate.MigrateToHibernate66: This recipe will apply changes commonly needed when migrating to Hibernate 6.5.x.
  • io.moderne.recipe.hibernate.search.FindJPQLDefinitions: Find Java Persistence Query Language definitions in the codebase.
  • io.moderne.recipe.hibernate.update66.FixConflictingClassTypeAnnotations: Since Hibernate 6.6 a mapped class can have either @MappedSuperclass or @Embeddable, or @Entity. This recipe removes @Entity from classes annotated with @MappedSuperclass or @Embeddable.For the moment die combination of @MappedSuperclass or @Embeddable is advised to migrate to Single Table Inheritancebut still accepted and therefore stays.
  • io.moderne.recipe.hibernate.update66.RemoveTableFromInheritedEntity: For Single Table Inherited Entities Hibernate ignores the @Table annotation on child entities. From Version 6.6 it is considered an error.
  • io.moderne.recipe.spring.boot3.AddValidToConfigurationPropertiesFields: In Spring Boot 3.4, validation of @ConfigurationProperties classes annotated with @Validated now follows the Bean Validation specification, only cascading to nested properties if the corresponding field is annotated with @Valid. The recipe will add a @Valid annotation to each field which has a type that has a field which is annotated with a jakarta.validation.constraints.* annotation.
  • io.moderne.recipe.spring.boot3.CommentDeprecations: Spring Boot 3.4 deprecates methods that are not commonly used or need manual interaction.
  • io.moderne.recipe.spring.boot3.CommentOnMockAndSpyBeansInConfigSpring34: As stated in Spring Docs @MockitoSpyBean and @MockitoBean will only work in tests, explicitly not in @Configuration annotated classes.
  • io.moderne.recipe.spring.boot3.ConditionalOnAvailableEndpointMigrationSpring34: Migrate @ConditionalOnAvailableEndpoint(EndpointExposure.CLOUD_FOUNDRY) to @ConditionalOnAvailableEndpoint(EndpointExposure.WEB) for Spring Boot 3.4.
  • io.moderne.recipe.spring.boot3.MigrateEndpointAccessValueSpring34: Migrate manage endpoint access value from false to none and true to read-only.
  • io.moderne.recipe.spring.boot3.MigrateEndpointAnnotationAccessValueSpring34: Since Spring Boot 3.4 the @Endpoint access configuration values are no longer true|false but none|read-only|unrestricted
  • io.moderne.recipe.spring.boot3.RemoveReplaceNoneFromAutoConfigureTestDatabase: Replace.NONE is the default value for @AutoConfigureTestDatabase since Spring Boot 3.4.
  • io.moderne.recipe.spring.boot3.SpringBoot3BestPractices: Applies best practices to Spring Boot 3.4+ applications.
  • io.moderne.recipe.spring.boot3.SpringBootManagementEndpointProperties_3_4: Migrate the settings for Management Endpoint Security from true|false to read-only|none.
  • io.moderne.recipe.spring.boot3.SpringBootProperties_3_4: Migrate properties found in application.properties and application.yml.
  • io.moderne.recipe.spring.boot3.UpgradeGradle7Spring34: Spring Boot 3.4 requires Gradle 7.6.4.
  • io.moderne.recipe.spring.boot3.UpgradeGradle8Spring34: Spring Boot 3.4 requires Gradle 8.4+.
  • io.moderne.recipe.spring.boot3.UpgradeSpringBoot_3_4: Migrate applications to the latest Spring Boot 3.4 release. This recipe will modify an application's build files, make changes to deprecated/preferred APIs, and migrate configuration settings that have changes between versions. This recipe will also chain additional framework migrations (Spring Framework, Spring Data, etc) that are required as part of the migration to Spring Boot 3.4.
  • io.moderne.recipe.spring.cloud2024.DependencyUpgrades: Upgrade dependencies to Spring Cloud 2024 from prior 2023.x version.
  • io.moderne.recipe.spring.cloud2024.UpgradeSpringCloud_2024: Migrate applications to the latest Spring Cloud 2024 (Leyton) release.
  • io.moderne.recipe.spring.framework.UpgradeSpringFramework_6_2: Migrate applications to the latest Spring Framework 6.2 release.

Changed Recipes

  • org.openrewrite.gradle.search.FindPlugins was changed:
    • Old Options:
      • pluginId: { type: String, required: true }
    • New Options:
      • pluginClass: { type: String, required: false }
      • pluginId: { type: String, required: true }
  • org.openrewrite.yaml.MergeYaml was changed:
    • Old Options:
      • acceptTheirs: { type: Boolean, required: false }
      • filePattern: { type: String, required: false }
      • insertBefore: { type: String, required: false }
      • key: { type: String, required: true }
      • objectIdentifyingProperty: { type: String, required: false }
      • yaml: { type: String, required: true }
    • New Options:
      • acceptTheirs: { type: Boolean, required: false }
      • filePattern: { type: String, required: false }
      • insertMode: { type: InsertMode, required: false }
      • insertProperty: { type: String, required: false }
      • key: { type: String, required: true }
      • objectIdentifyingProperty: { type: String, required: false }
      • yaml: { type: String, required: true }