8.1.14 Release (2023-08-07)

Due to some issues with building the projects, auto-generated recipe examples have been temporarily turned off.

New Recipes

Removed Recipes

  • org.openrewrite.FindBuildToolFailures: This recipe explores build tool failures after an LST is produced for classifying the types of failures that can occur and prioritizing fixes according to the most common problems.

  • org.openrewrite.java.migrate.lombok.UpdateLombokToJava17: Update Lombok dependency to a version that is compatible with Java 17 and migrate experimental Lombok types that have been promoted.

  • org.openrewrite.java.testing.assertj.UseExplicitContains: Convert AssertJ assertThat(collection.contains(element)).isTrue() to assertThat(collection).contains(element) and assertThat(collection.contains(element)).isFalse() to assertThat(collection).doesNotContain(element).

  • org.openrewrite.java.testing.assertj.UseExplicitIsEmpty: Convert AssertJ assertThat(collection.isEmpty()).isTrue() to assertThat(collection).isEmpty() and assertThat(collection.isEmpty()).isFalse() to assertThat(collection).isNotEmpty().

  • org.openrewrite.java.testing.assertj.UseExplicitSize: Convert assertThat(collection.size()).isEqualTo(Y) to AssertJ's assertThat(collection).hasSize().

  • org.openrewrite.java.testing.hamcrest.FlattenAllOf: Convert Hamcrest allOf(Matcher...) to individual assertThat statements for easier migration.

  • org.openrewrite.java.testing.hamcrest.HamcrestAnyOfToAssertJ: Migrate the anyOf Hamcrest Matcher to AssertJ's satisfiesAnyOf assertion.

Changed Recipes

  • org.openrewrite.text.Find was changed:

    • Old Options:

      • caseSensitive: { type: Boolean, required: false }

      • dotAll: { type: Boolean, required: false }

      • filePattern: { type: String, required: true }

      • find: { type: String, required: true }

      • multiline: { type: Boolean, required: false }

      • regex: { type: Boolean, required: false }

    • New Options:

      • caseSensitive: { type: Boolean, required: false }

      • dotAll: { type: Boolean, required: false }

      • filePattern: { type: String, required: false }

      • find: { type: String, required: true }

      • multiline: { type: Boolean, required: false }

      • regex: { type: Boolean, required: false }

  • org.openrewrite.java.spring.amqp.UseTlsAmqpConnectionString was changed:

    • Old Options:

      • oldPort: { type: Integer, required: true }

      • pathExpressions: { type: List, required: false }

      • port: { type: Integer, required: true }

      • propertyKey: { type: String, required: true }

      • tlsPropertyKey: { type: String, required: true }

    • New Options:

      • oldPort: { type: Integer, required: true }

      • pathExpressions: { type: List, required: false }

      • port: { type: Integer, required: true }

      • propertyKey: { type: String, required: false }

      • tlsPropertyKey: { type: String, required: false }

Last updated