|
| 1 | +# 8.44.1 release (2025-01-24) |
| 2 | + |
| 3 | +:::info |
| 4 | +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](https://github.com/openrewrite/rewrite/releases). |
| 5 | +::: |
| 6 | + |
| 7 | +## Removed Artifacts |
| 8 | +* rewrite-recommendations |
| 9 | + |
| 10 | +## New Recipes |
| 11 | + |
| 12 | +* [org.openrewrite.hcl.ReplaceLegacyAttributeIndexSyntax](https://docs.openrewrite.org/recipes/hcl/replacelegacyattributeindexsyntax): Replace legacy attribute index syntax (`.0`) with the new syntax (`[0]`). |
| 13 | +* [org.openrewrite.java.ChangeMethodInvocationReturnType](https://docs.openrewrite.org/recipes/java/changemethodinvocationreturntype): Changes the return type of a method invocation. |
| 14 | +* [org.openrewrite.java.ReplaceStringLiteralValue](https://docs.openrewrite.org/recipes/java/replacestringliteralvalue): Replace the value of a complete `String` literal. |
| 15 | +* [org.openrewrite.java.migrate.lombok.LombokBestPractices](https://docs.openrewrite.org/recipes/java/migrate/lombok/lombokbestpractices): Applies all recipes that enforce best practices for using Lombok. |
| 16 | +* [org.openrewrite.java.spring.boot3.ReplaceMockBeanAndSpyBean](https://docs.openrewrite.org/recipes/java/spring/boot3/replacemockbeanandspybean): Replaces `@MockBean` and `@SpyBean` annotations with `@MockitoBean` and `@MockitoSpyBean`. |
| 17 | +* [org.openrewrite.java.spring.boot3.ReplaceRestTemplateBuilderMethods](https://docs.openrewrite.org/recipes/java/spring/boot3/replaceresttemplatebuildermethods): Replaces `setConnectTimeout`, `setReadTimeout`, and `setSslBundle` method invocations with `connectTimeout`, `readTimeout`, and `sslBundle` respectively. |
| 18 | +* [org.openrewrite.json.AddKeyValue](https://docs.openrewrite.org/recipes/json/addkeyvalue): Adds a `value` at the specified `keyPath` with the specified `key`, if the key doesn't already exist. |
| 19 | +* [org.openrewrite.json.format.Indents](https://docs.openrewrite.org/recipes/json/format/indents): Format tabs and indents in JSON. |
| 20 | +* [org.openrewrite.maven.UpdateMavenProjectPropertyJavaVersion](https://docs.openrewrite.org/recipes/maven/updatemavenprojectpropertyjavaversion): The Java version is determined by several project properties, including:<br /><br /> * `java.version`<br /> * `jdk.version`<br /> * `javaVersion`<br /> * `jdkVersion`<br /> * `maven.compiler.source`<br /> * `maven.compiler.target`<br /> * `maven.compiler.release`<br /> * `release.version`<br /><br />If none of these properties are in use and the maven compiler plugin is not otherwise configured, adds the `maven.compiler.release` property. |
| 21 | +* [org.openrewrite.maven.UseMavenCompilerPluginReleaseConfiguration](https://docs.openrewrite.org/recipes/maven/usemavencompilerpluginreleaseconfiguration): Replaces any explicit `source` or `target` configuration (if present) on the `maven-compiler-plugin` with `release`, and updates the `release` value if needed. Will not downgrade the Java version if the current version is higher. |
| 22 | +* [org.openrewrite.staticanalysis.AbstractClassPublicConstructor](https://docs.openrewrite.org/recipes/staticanalysis/abstractclasspublicconstructor): Constructors of `abstract` classes can only be called in constructors of their subclasses. Therefore the visibility of `public` constructors are reduced to `protected`. |
| 23 | +* [software.amazon.awssdk.v2migration.SdkBytesToByteBuffer](https://docs.openrewrite.org/recipes/software/amazon/awssdk/v2migration/sdkbytestobytebuffer): Convert SdkBytes to ByteBuffer by calling SdkBytes#asByteBuffer() |
| 24 | + |
| 25 | +## Removed Recipes |
| 26 | + |
| 27 | +* **org.openrewrite.java.boot3.ReplaceMockBeanAndSpyBean**: Replaces `@MockBean` and `@SpyBean` annotations with `@MockitoBean` and `@MockitoSpyBean`. |
| 28 | + |
| 29 | +## Changed Recipes |
| 30 | + |
| 31 | +* [org.openrewrite.gradle.plugins.AddBuildPlugin](https://docs.openrewrite.org/recipes/gradle/plugins/addbuildplugin) was changed: |
| 32 | + * Old Options: |
| 33 | + * `apply: { type: Boolean, required: false }` |
| 34 | + * `pluginId: { type: String, required: true }` |
| 35 | + * `version: { type: String, required: false }` |
| 36 | + * `versionPattern: { type: String, required: false }` |
| 37 | + * New Options: |
| 38 | + * `acceptTransitive: { type: Boolean, required: false }` |
| 39 | + * `apply: { type: Boolean, required: false }` |
| 40 | + * `pluginId: { type: String, required: true }` |
| 41 | + * `version: { type: String, required: false }` |
| 42 | + * `versionPattern: { type: String, required: false }` |
| 43 | +* [org.openrewrite.gradle.plugins.AddSettingsPlugin](https://docs.openrewrite.org/recipes/gradle/plugins/addsettingsplugin) was changed: |
| 44 | + * Old Options: |
| 45 | + * `apply: { type: Boolean, required: false }` |
| 46 | + * `pluginId: { type: String, required: true }` |
| 47 | + * `version: { type: String, required: false }` |
| 48 | + * `versionPattern: { type: String, required: false }` |
| 49 | + * New Options: |
| 50 | + * `acceptTransitive: { type: Boolean, required: false }` |
| 51 | + * `apply: { type: Boolean, required: false }` |
| 52 | + * `pluginId: { type: String, required: true }` |
| 53 | + * `version: { type: String, required: false }` |
| 54 | + * `versionPattern: { type: String, required: false }` |
| 55 | +* [org.openrewrite.java.AddOrUpdateAnnotationAttribute](https://docs.openrewrite.org/recipes/java/addorupdateannotationattribute) was changed: |
| 56 | + * Old Options: |
| 57 | + * `addOnly: { type: Boolean, required: true }` |
| 58 | + * `annotationType: { type: String, required: true }` |
| 59 | + * `appendArray: { type: Boolean, required: true }` |
| 60 | + * `attributeName: { type: String, required: false }` |
| 61 | + * `attributeValue: { type: String, required: true }` |
| 62 | + * New Options: |
| 63 | + * `addOnly: { type: Boolean, required: true }` |
| 64 | + * `annotationType: { type: String, required: true }` |
| 65 | + * `appendArray: { type: Boolean, required: true }` |
| 66 | + * `attributeName: { type: String, required: false }` |
| 67 | + * `attributeValue: { type: String, required: true }` |
| 68 | + * `oldAttributeValue: { type: String, required: true }` |
| 69 | +* [org.openrewrite.maven.ChangePluginGroupIdAndArtifactId](https://docs.openrewrite.org/recipes/maven/changeplugingroupidandartifactid) was changed: |
| 70 | + * Old Options: |
| 71 | + * `newArtifact: { type: String, required: false }` |
| 72 | + * `newArtifactId: { type: String, required: false }` |
| 73 | + * `newGroupId: { type: String, required: false }` |
| 74 | + * `oldArtifactId: { type: String, required: true }` |
| 75 | + * `oldGroupId: { type: String, required: true }` |
| 76 | + * New Options: |
| 77 | + * `newArtifactId: { type: String, required: false }` |
| 78 | + * `newGroupId: { type: String, required: false }` |
| 79 | + * `newVersion: { type: String, required: false }` |
| 80 | + * `oldArtifactId: { type: String, required: true }` |
| 81 | + * `oldGroupId: { type: String, required: true }` |
| 82 | +* [org.openrewrite.quarkus.search.FindQuarkusProperties](https://docs.openrewrite.org/recipes/quarkus/search/findquarkusproperties) was changed: |
| 83 | + * Old Options: |
| 84 | + * `profile: { type: String, required: false }` |
| 85 | + * `propertyKey: { type: String, required: true }` |
| 86 | + * `searchAllProfiles: { type: Boolean, required: false }` |
| 87 | + * New Options: |
| 88 | + * `pathExpressions: { type: List, required: false }` |
| 89 | + * `profile: { type: String, required: false }` |
| 90 | + * `propertyKey: { type: String, required: true }` |
| 91 | + * `searchAllProfiles: { type: Boolean, required: false }` |
| 92 | +* [org.openrewrite.staticanalysis.UnnecessaryCatch](https://docs.openrewrite.org/recipes/staticanalysis/unnecessarycatch) was changed: |
| 93 | + * Old Options: |
| 94 | + * `includeJavaLangException: { type: boolean, required: false }` |
| 95 | + * New Options: |
| 96 | + * `includeJavaLangException: { type: boolean, required: false }` |
| 97 | + * `includeJavaLangThrowable: { type: boolean, required: false }` |
0 commit comments