From b0031f4f50b430e614239aa10adc589746c45ea6 Mon Sep 17 00:00:00 2001 From: Mike Solomon Date: Thu, 28 Dec 2023 08:13:39 -0800 Subject: [PATCH] 8.12.0 release --- src/main/resources/CHANGELOG-2023-12-28.md | 36 ++ .../CHANGELOG-2023-12-08.md | 0 .../CHANGELOG-2023-12-18.md | 0 .../CHANGELOG-2023-12-21.md | 0 .../snapshot-CHANGELOG-2023-12-04.md | 0 .../snapshot-CHANGELOG-2023-12-21.md | 93 +++++ src/main/resources/recipeDescriptors.yml | 72 ++-- .../snapshot-CHANGELOG-2023-12-28.md | 37 ++ .../resources/snapshotRecipeDescriptors.yml | 324 ++++++++++++++++-- 9 files changed, 491 insertions(+), 71 deletions(-) create mode 100644 src/main/resources/CHANGELOG-2023-12-28.md rename src/main/resources/{ => old-changelogs}/CHANGELOG-2023-12-08.md (100%) rename src/main/resources/{ => old-changelogs}/CHANGELOG-2023-12-18.md (100%) rename src/main/resources/{ => old-changelogs}/CHANGELOG-2023-12-21.md (100%) rename src/main/resources/{ => old-snapshot-changelogs}/snapshot-CHANGELOG-2023-12-04.md (100%) create mode 100644 src/main/resources/old-snapshot-changelogs/snapshot-CHANGELOG-2023-12-21.md create mode 100644 src/main/resources/snapshot-CHANGELOG-2023-12-28.md diff --git a/src/main/resources/CHANGELOG-2023-12-28.md b/src/main/resources/CHANGELOG-2023-12-28.md new file mode 100644 index 0000000..fa75681 --- /dev/null +++ b/src/main/resources/CHANGELOG-2023-12-28.md @@ -0,0 +1,36 @@ +# 8.12.0 release (2023-12-28) + +{% hint style="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](https://github.com/openrewrite/rewrite/releases). +{% endhint %} + +## New Recipes + +* [org.openrewrite.java.ai.ClassDefinitionLength](https://docs.openrewrite.org/recipes/java/ai/classdefinitionlength): Locates class definitions and predicts the number of token in each. +* [org.openrewrite.java.ai.MethodDefinitionLength](https://docs.openrewrite.org/recipes/java/ai/methoddefinitionlength): Locates method definitions and predicts the number of token in each. + +## Removed Recipes + +* **org.openrewrite.java.ClassDefinitionLength**: Locates class definitions and predicts the number of token in each. +* **org.openrewrite.java.MethodDefinitionLength**: Locates method definitions and predicts the number of token in each. + +## Changed Recipes + +* [org.openrewrite.java.search.HasJavaVersion](https://docs.openrewrite.org/recipes/java/search/hasjavaversion) was changed: + * Old Options: + * `checkTargetCompatibility: { type: Boolean, required: true }` + * `version: { type: String, required: true }` + * New Options: + * `checkTargetCompatibility: { type: Boolean, required: false }` + * `version: { type: String, required: true }` +* [org.openrewrite.maven.ChangePluginGroupIdAndArtifactId](https://docs.openrewrite.org/recipes/maven/changeplugingroupidandartifactid) was changed: + * Old Options: + * `newArtifactId: { type: String, required: false }` + * `newGroupId: { type: String, required: false }` + * `oldArtifactId: { type: String, required: true }` + * `oldGroupId: { type: String, required: true }` + * New Options: + * `newArtifact: { type: String, required: false }` + * `newGroupId: { type: String, required: false }` + * `oldArtifactId: { type: String, required: true }` + * `oldGroupId: { type: String, required: true }` \ No newline at end of file diff --git a/src/main/resources/CHANGELOG-2023-12-08.md b/src/main/resources/old-changelogs/CHANGELOG-2023-12-08.md similarity index 100% rename from src/main/resources/CHANGELOG-2023-12-08.md rename to src/main/resources/old-changelogs/CHANGELOG-2023-12-08.md diff --git a/src/main/resources/CHANGELOG-2023-12-18.md b/src/main/resources/old-changelogs/CHANGELOG-2023-12-18.md similarity index 100% rename from src/main/resources/CHANGELOG-2023-12-18.md rename to src/main/resources/old-changelogs/CHANGELOG-2023-12-18.md diff --git a/src/main/resources/CHANGELOG-2023-12-21.md b/src/main/resources/old-changelogs/CHANGELOG-2023-12-21.md similarity index 100% rename from src/main/resources/CHANGELOG-2023-12-21.md rename to src/main/resources/old-changelogs/CHANGELOG-2023-12-21.md diff --git a/src/main/resources/snapshot-CHANGELOG-2023-12-04.md b/src/main/resources/old-snapshot-changelogs/snapshot-CHANGELOG-2023-12-04.md similarity index 100% rename from src/main/resources/snapshot-CHANGELOG-2023-12-04.md rename to src/main/resources/old-snapshot-changelogs/snapshot-CHANGELOG-2023-12-04.md diff --git a/src/main/resources/old-snapshot-changelogs/snapshot-CHANGELOG-2023-12-21.md b/src/main/resources/old-snapshot-changelogs/snapshot-CHANGELOG-2023-12-21.md new file mode 100644 index 0000000..040789e --- /dev/null +++ b/src/main/resources/old-snapshot-changelogs/snapshot-CHANGELOG-2023-12-21.md @@ -0,0 +1,93 @@ +# Snapshot (2023-12-21) + +{% hint style="info" %} +Want to learn how to use snapshot versions in your project? Check out our [snapshot version guide](/reference/snapshot-instructions.md). +{% endhint %} + +## New Recipes + +* [org.openrewrite.github.ChangeActionVersion](https://docs.openrewrite.org/recipes/github/changeactionversion): Change the version of a GitHub Action in any `.github/workflows/*.yml` file. +* [org.openrewrite.java.ClassDefinitionLength](https://docs.openrewrite.org/recipes/java/classdefinitionlength): Locates class definitions and predicts the number of token in each. +* [org.openrewrite.java.MethodDefinitionLength](https://docs.openrewrite.org/recipes/java/methoddefinitionlength): Locates method definitions and predicts the number of token in each. +* [org.openrewrite.java.logging.log4j.CommonsLoggingToLog4j](https://docs.openrewrite.org/recipes/java/logging/log4j/commonsloggingtolog4j): Transforms code written using Apache Commons Logging to use Log4j 2.x API. +* [org.openrewrite.java.logging.log4j.ConvertJulEntering](https://docs.openrewrite.org/recipes/java/logging/log4j/convertjulentering): Replaces JUL's Logger#entering method calls to Log4j API Logger#traceEntry calls. +* [org.openrewrite.java.logging.log4j.ConvertJulExiting](https://docs.openrewrite.org/recipes/java/logging/log4j/convertjulexiting): Replaces JUL's Logger#exiting method calls to Log4j API Logger#traceEntry calls. +* [org.openrewrite.java.logging.log4j.JulToLog4j](https://docs.openrewrite.org/recipes/java/logging/log4j/jultolog4j): Transforms code written using `java.util.logging` to use Log4j 2.x API. +* [org.openrewrite.java.migrate.CastArraysAsListToList](https://docs.openrewrite.org/recipes/java/migrate/castarraysaslisttolist): Convert code like `(Integer[]) Arrays.asList(1, 2, 3).toArray()` to `Arrays.asList(1, 2, 3).toArray(new Integer[0])`. +* [org.openrewrite.java.migrate.JpaCacheProperties](https://docs.openrewrite.org/recipes/java/migrate/jpacacheproperties): Sets an explicit value for the shared cache mode. +* [org.openrewrite.java.migrate.jakarta.BeanValidationMessages](https://docs.openrewrite.org/recipes/java/migrate/jakarta/beanvalidationmessages): Migrate `javax.validation.constraints` messages found in Java files to `jakarta.validation.constraints` equivalents. +* [org.openrewrite.java.migrate.jakarta.Faces2xMigrationToJakarta4x](https://docs.openrewrite.org/recipes/java/migrate/jakarta/faces2xmigrationtojakarta4x): Jakarta EE 10 uses Faces 4.0 a major upgrade to Jakarta packages and XML namespaces. +* [org.openrewrite.java.migrate.jakarta.JakartaFacesEcmaScript](https://docs.openrewrite.org/recipes/java/migrate/jakarta/jakartafacesecmascript): Convert JSF to Faces values inside JavaScript,TypeScript, and Properties files +* [org.openrewrite.java.migrate.jakarta.JakartaFacesXhtml](https://docs.openrewrite.org/recipes/java/migrate/jakarta/jakartafacesxhtml): Find and replace legacy JSF namespaces and javax references with Jakarta Faces values in XHTML files. +* [org.openrewrite.java.migrate.jakarta.JavaxBeansXmlToJakartaBeansXml](https://docs.openrewrite.org/recipes/java/migrate/jakarta/javaxbeansxmltojakartabeansxml): Java EE has been rebranded to Jakarta EE, necessitating an XML namespace relocation. +* [org.openrewrite.java.migrate.jakarta.JavaxFacesConfigXmlToJakartaFacesConfigXml](https://docs.openrewrite.org/recipes/java/migrate/jakarta/javaxfacesconfigxmltojakartafacesconfigxml): Java EE has been rebranded to Jakarta EE, necessitating an XML namespace relocation. +* [org.openrewrite.java.migrate.jakarta.JavaxFacesTagLibraryXmlToJakartaFacesTagLibraryXml](https://docs.openrewrite.org/recipes/java/migrate/jakarta/javaxfacestaglibraryxmltojakartafacestaglibraryxml): Java EE has been rebranded to Jakarta EE, necessitating an XML namespace relocation. +* [org.openrewrite.java.migrate.jakarta.JavaxToJakartaCdiExtensions](https://docs.openrewrite.org/recipes/java/migrate/jakarta/javaxtojakartacdiextensions): Rename `javax.enterprise.inject.spi.Extension` to `jakarta.enterprise.inject.spi.Extension`. +* [org.openrewrite.java.migrate.jakarta.JavaxWebFragmentXmlToJakartaWebFragmentXml](https://docs.openrewrite.org/recipes/java/migrate/jakarta/javaxwebfragmentxmltojakartawebfragmentxml): Java EE has been rebranded to Jakarta EE, necessitating an XML namespace relocation. +* [org.openrewrite.java.migrate.jakarta.JavaxWebXmlToJakartaWebXml](https://docs.openrewrite.org/recipes/java/migrate/jakarta/javaxwebxmltojakartawebxml): Java EE has been rebranded to Jakarta EE, necessitating an XML namespace relocation. +* [org.openrewrite.java.migrate.jakarta.UpgradeFacesOpenSourceLibraries](https://docs.openrewrite.org/recipes/java/migrate/jakarta/upgradefacesopensourcelibraries): Upgrade PrimeFaces, OmniFaces, and MyFaces libraries to Jakarta EE10 versions. +* [org.openrewrite.java.security.servlet.CookieSetSecure](https://docs.openrewrite.org/recipes/java/security/servlet/cookiesetsecure): Check for use of insecure cookies. Cookies should be marked as secure. This ensures that the cookie is sent only over HTTPS to prevent cross-site scripting attacks. +* [org.openrewrite.java.spring.security6.ApplyToWithLambdaDsl](https://docs.openrewrite.org/recipes/java/spring/security6/applytowithlambdadsl): Converts `HttpSecurity::apply` chained call from Spring Security pre 6.2.x into new lambda DSL style calls and removes `and()` methods. +* [org.openrewrite.java.testing.junit5.AddMissingTestBeforeAfterAnnotations](https://docs.openrewrite.org/recipes/java/testing/junit5/addmissingtestbeforeafterannotations): Adds `@BeforeEach`, `@AfterEach`, `@Test` to methods overriding superclass methods if the annoations are present on the superclass method. +* [org.openrewrite.java.testing.mockito.Mockito1to5Migration](https://docs.openrewrite.org/recipes/java/testing/mockito/mockito1to5migration): Upgrade Mockito from 1.x to 5.x. +* [org.openrewrite.kotlin.cleanup.RemoveTrailingComma](https://docs.openrewrite.org/recipes/kotlin/cleanup/removetrailingcomma): Remove trailing commas in variable, parameter, and class property lists. +* [org.openrewrite.kotlin.cleanup.UnnecessaryTypeParentheses](https://docs.openrewrite.org/recipes/kotlin/cleanup/unnecessarytypeparentheses): In Kotlin, it's possible to add redundant nested parentheses in type definitions. This recipe is designed to remove those unnecessary parentheses. +* [org.openrewrite.quarkus.AddQuarkusProperty](https://docs.openrewrite.org/recipes/quarkus/addquarkusproperty): Add a Quarkus configuration property to an existing configuration file if it does not already exist in that file. + +## Changed Recipes + +* [org.openrewrite.FindSourceFiles](https://docs.openrewrite.org/recipes/findsourcefiles) was changed: + * Old Options: + * `filePattern: { type: String, required: true }` + * New Options: + * `filePattern: { type: String, required: false }` +* [org.openrewrite.text.FindAndReplace](https://docs.openrewrite.org/recipes/text/findandreplace) was changed: + * Old 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 }` + * `replace: { type: String, required: true }` + * 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 }` + * `replace: { type: String, required: false }` +* [org.openrewrite.gradle.UpdateGradleWrapper](https://docs.openrewrite.org/recipes/gradle/updategradlewrapper) was changed: + * Old Options: + * `addIfMissing: { type: Boolean, required: false }` + * `distribution: { type: String, required: false }` + * `repositoryUrl: { type: String, required: false }` + * `version: { type: String, required: false }` + * New Options: + * `addIfMissing: { type: Boolean, required: false }` + * `distribution: { type: String, required: false }` + * `version: { type: String, required: false }` +* [org.openrewrite.java.search.FindImplementations](https://docs.openrewrite.org/recipes/java/search/findimplementations) was changed: + * Old Options: + * `interfaceFullyQualifiedName: { type: String, required: true }` + * `matchInherited: { type: Boolean, required: false }` + * New Options: + * `typeName: { type: String, required: true }` +* [org.openrewrite.properties.AddProperty](https://docs.openrewrite.org/recipes/properties/addproperty) was changed: + * Old Options: + * `delimiter: { type: String, required: false }` + * `property: { type: String, required: true }` + * `value: { type: String, required: true }` + * New Options: + * `comment: { type: String, required: false }` + * `delimiter: { type: String, required: false }` + * `property: { type: String, required: true }` + * `value: { type: String, required: true }` +* [org.openrewrite.java.spring.RenameBean](https://docs.openrewrite.org/recipes/java/spring/renamebean) was changed: + * Old Options: + * `None` + * New Options: + * `newName: { type: String, required: true }` + * `oldName: { type: String, required: true }` + * `type: { type: String, required: false }` \ No newline at end of file diff --git a/src/main/resources/recipeDescriptors.yml b/src/main/resources/recipeDescriptors.yml index a0c36ee..ce1c627 100644 --- a/src/main/resources/recipeDescriptors.yml +++ b/src/main/resources/recipeDescriptors.yml @@ -349,7 +349,7 @@ rewrite-concourse: artifactId: "rewrite-concourse" rewrite-core: artifactId: "rewrite-core" - version: "8.11.5" + version: "8.12.0" markdownRecipeDescriptors: org.openrewrite.DeleteSourceFiles: name: "org.openrewrite.DeleteSourceFiles" @@ -884,7 +884,7 @@ rewrite-github-actions: artifactId: "rewrite-github-actions" rewrite-gradle: artifactId: "rewrite-gradle" - version: "8.11.5" + version: "8.12.0" markdownRecipeDescriptors: org.openrewrite.gradle.AddDependency: name: "org.openrewrite.gradle.AddDependency" @@ -1448,14 +1448,14 @@ rewrite-gradle: artifactId: "rewrite-gradle" org.openrewrite.gradle.security.UseHttpsForRepositories: name: "org.openrewrite.gradle.security.UseHttpsForRepositories" - description: "Use HTTPS for repository urls." + description: "Use HTTPS for repository URLs." docLink: "https://docs.openrewrite.org/recipes/gradle/security/usehttpsforrepositories" options: [] isImperative: true artifactId: "rewrite-gradle" rewrite-groovy: artifactId: "rewrite-groovy" - version: "8.11.5" + version: "8.12.0" markdownRecipeDescriptors: org.openrewrite.groovy.format.OmitParenthesesForLastArgumentLambda: name: "org.openrewrite.groovy.format.OmitParenthesesForLastArgumentLambda" @@ -1474,7 +1474,7 @@ rewrite-groovy: artifactId: "rewrite-groovy" rewrite-hcl: artifactId: "rewrite-hcl" - version: "8.11.5" + version: "8.12.0" markdownRecipeDescriptors: org.openrewrite.hcl.DeleteContent: name: "org.openrewrite.hcl.DeleteContent" @@ -1625,7 +1625,7 @@ rewrite-hibernate: artifactId: "rewrite-hibernate" rewrite-java: artifactId: "rewrite-java" - version: "8.11.5" + version: "8.12.0" markdownRecipeDescriptors: org.openrewrite.java.AddApache2LicenseHeader: name: "org.openrewrite.java.AddApache2LicenseHeader" @@ -1817,14 +1817,6 @@ rewrite-java: required: true isImperative: true artifactId: "rewrite-java" - org.openrewrite.java.ClassDefinitionLength: - name: "org.openrewrite.java.ClassDefinitionLength" - description: "Locates class definitions and predicts the number of token in\ - \ each." - docLink: "https://docs.openrewrite.org/recipes/java/classdefinitionlength" - options: [] - isImperative: true - artifactId: "rewrite-java" org.openrewrite.java.CreateEmptyJavaClass: name: "org.openrewrite.java.CreateEmptyJavaClass" description: "Create a new, empty Java class." @@ -1863,14 +1855,6 @@ rewrite-java: required: true isImperative: true artifactId: "rewrite-java" - org.openrewrite.java.MethodDefinitionLength: - name: "org.openrewrite.java.MethodDefinitionLength" - description: "Locates method definitions and predicts the number of token in\ - \ each." - docLink: "https://docs.openrewrite.org/recipes/java/methoddefinitionlength" - options: [] - isImperative: true - artifactId: "rewrite-java" org.openrewrite.java.NoStaticImport: name: "org.openrewrite.java.NoStaticImport" description: "Removes static imports and replaces them with qualified references.\ @@ -2070,6 +2054,22 @@ rewrite-java: required: true isImperative: true artifactId: "rewrite-java" + org.openrewrite.java.ai.ClassDefinitionLength: + name: "org.openrewrite.java.ai.ClassDefinitionLength" + description: "Locates class definitions and predicts the number of token in\ + \ each." + docLink: "https://docs.openrewrite.org/recipes/java/ai/classdefinitionlength" + options: [] + isImperative: true + artifactId: "rewrite-java" + org.openrewrite.java.ai.MethodDefinitionLength: + name: "org.openrewrite.java.ai.MethodDefinitionLength" + description: "Locates method definitions and predicts the number of token in\ + \ each." + docLink: "https://docs.openrewrite.org/recipes/java/ai/methoddefinitionlength" + options: [] + isImperative: true + artifactId: "rewrite-java" org.openrewrite.java.format.AutoFormat: name: "org.openrewrite.java.format.AutoFormat" description: "Format Java code using a standard comprehensive set of Java formatting\ @@ -2570,7 +2570,7 @@ rewrite-java: artifactId: "rewrite-java" org.openrewrite.java.search.FindTypeMappings: name: "org.openrewrite.java.search.FindTypeMappings" - description: "Find types mapped to J trees." + description: "Study the frequency of `J` types and their `JavaType` type attribution." docLink: "https://docs.openrewrite.org/recipes/java/search/findtypemappings" options: [] isImperative: true @@ -2596,7 +2596,7 @@ rewrite-java: options: - name: "checkTargetCompatibility" type: "Boolean" - required: true + required: false - name: "version" type: "String" required: true @@ -2910,7 +2910,7 @@ rewrite-java-dependencies: artifactId: "rewrite-java-dependencies" rewrite-java-security: artifactId: "rewrite-java-security" - version: "2.1.3" + version: "2.1.4" markdownRecipeDescriptors: org.openrewrite.java.security.FindTextDirectionChanges: name: "org.openrewrite.java.security.FindTextDirectionChanges" @@ -3543,7 +3543,7 @@ rewrite-jenkins: artifactId: "rewrite-jenkins" rewrite-json: artifactId: "rewrite-json" - version: "8.11.5" + version: "8.12.0" markdownRecipeDescriptors: org.openrewrite.json.ChangeKey: name: "org.openrewrite.json.ChangeKey" @@ -4607,7 +4607,7 @@ rewrite-logging-frameworks: artifactId: "rewrite-logging-frameworks" rewrite-maven: artifactId: "rewrite-maven" - version: "8.11.5" + version: "8.12.0" markdownRecipeDescriptors: org.openrewrite.maven.AddCommentToMavenDependency: name: "org.openrewrite.maven.AddCommentToMavenDependency" @@ -4828,7 +4828,7 @@ rewrite-maven: artifactId: "rewrite-maven" org.openrewrite.maven.AddRepository: name: "org.openrewrite.maven.AddRepository" - description: "Adds a new Maven Repository or Update a matching repository." + description: "Adds a new Maven Repository or updates a matching repository." docLink: "https://docs.openrewrite.org/recipes/maven/addrepository" options: - name: "id" @@ -5069,7 +5069,7 @@ rewrite-maven: \ plugin." docLink: "https://docs.openrewrite.org/recipes/maven/changeplugingroupidandartifactid" options: - - name: "newArtifactId" + - name: "newArtifact" type: "String" required: false - name: "newGroupId" @@ -5254,7 +5254,7 @@ rewrite-maven: artifactId: "rewrite-maven" org.openrewrite.maven.RemovePlugin: name: "org.openrewrite.maven.RemovePlugin" - description: "Remove the specified Maven plugin from the pom.xml." + description: "Remove the specified Maven plugin from the POM." docLink: "https://docs.openrewrite.org/recipes/maven/removeplugin" options: - name: "artifactId" @@ -5622,7 +5622,7 @@ rewrite-maven: artifactId: "rewrite-maven" org.openrewrite.maven.security.UseHttpsForRepositories: name: "org.openrewrite.maven.security.UseHttpsForRepositories" - description: "Use HTTPS for repository urls." + description: "Use HTTPS for repository URLs." docLink: "https://docs.openrewrite.org/recipes/maven/security/usehttpsforrepositories" options: [] isImperative: true @@ -8715,7 +8715,7 @@ rewrite-okhttp: artifactId: "rewrite-okhttp" rewrite-properties: artifactId: "rewrite-properties" - version: "8.11.5" + version: "8.12.0" markdownRecipeDescriptors: org.openrewrite.properties.AddProperty: name: "org.openrewrite.properties.AddProperty" @@ -13600,11 +13600,11 @@ rewrite-testing-frameworks: artifactId: "rewrite-testing-frameworks" rewrite-xml: artifactId: "rewrite-xml" - version: "8.11.5" + version: "8.12.0" markdownRecipeDescriptors: org.openrewrite.xml.AddCommentToXmlTag: name: "org.openrewrite.xml.AddCommentToXmlTag" - description: "Adds a comment as the first element in a `XML` tag." + description: "Adds a comment as the first element in an XML tag." docLink: "https://docs.openrewrite.org/recipes/xml/addcommenttoxmltag" options: - name: "commentText" @@ -13640,7 +13640,7 @@ rewrite-xml: artifactId: "rewrite-xml" org.openrewrite.xml.ChangeTagAttribute: name: "org.openrewrite.xml.ChangeTagAttribute" - description: "Alters XML Attribute value within specified element." + description: "Alters XML attribute value on a specified element." docLink: "https://docs.openrewrite.org/recipes/xml/changetagattribute" options: - name: "attributeName" @@ -13830,7 +13830,7 @@ rewrite-xml: artifactId: "rewrite-xml" rewrite-yaml: artifactId: "rewrite-yaml" - version: "8.11.5" + version: "8.12.0" markdownRecipeDescriptors: org.openrewrite.yaml.AppendToSequence: name: "org.openrewrite.yaml.AppendToSequence" diff --git a/src/main/resources/snapshot-CHANGELOG-2023-12-28.md b/src/main/resources/snapshot-CHANGELOG-2023-12-28.md new file mode 100644 index 0000000..b038558 --- /dev/null +++ b/src/main/resources/snapshot-CHANGELOG-2023-12-28.md @@ -0,0 +1,37 @@ +# Snapshot (2023-12-28) + +{% hint style="info" %} +Want to learn how to use snapshot versions in your project? Check out our [snapshot version guide](/reference/snapshot-instructions.md). +{% endhint %} + +## New Recipes + +* [org.openrewrite.java.ai.ClassDefinitionLength](https://docs.openrewrite.org/recipes/java/ai/classdefinitionlength): Locates class definitions and predicts the number of token in each. +* [org.openrewrite.java.ai.MethodDefinitionLength](https://docs.openrewrite.org/recipes/java/ai/methoddefinitionlength): Locates method definitions and predicts the number of token in each. +* [org.openrewrite.java.logging.log4j.Slf4jToLog4j](https://docs.openrewrite.org/recipes/java/logging/log4j/slf4jtolog4j): Transforms code written using SLF4J to use Log4j 2.x API. + +## Removed Recipes + +* **org.openrewrite.java.ClassDefinitionLength**: Locates class definitions and predicts the number of token in each. +* **org.openrewrite.java.MethodDefinitionLength**: Locates method definitions and predicts the number of token in each. + +## Changed Recipes + +* [org.openrewrite.java.search.HasJavaVersion](https://docs.openrewrite.org/recipes/java/search/hasjavaversion) was changed: + * Old Options: + * `checkTargetCompatibility: { type: Boolean, required: true }` + * `version: { type: String, required: true }` + * New Options: + * `checkTargetCompatibility: { type: Boolean, required: false }` + * `version: { type: String, required: true }` +* [org.openrewrite.maven.ChangePluginGroupIdAndArtifactId](https://docs.openrewrite.org/recipes/maven/changeplugingroupidandartifactid) was changed: + * Old Options: + * `newArtifactId: { type: String, required: false }` + * `newGroupId: { type: String, required: false }` + * `oldArtifactId: { type: String, required: true }` + * `oldGroupId: { type: String, required: true }` + * New Options: + * `newArtifact: { type: String, required: false }` + * `newGroupId: { type: String, required: false }` + * `oldArtifactId: { type: String, required: true }` + * `oldGroupId: { type: String, required: true }` \ No newline at end of file diff --git a/src/main/resources/snapshotRecipeDescriptors.yml b/src/main/resources/snapshotRecipeDescriptors.yml index b2c1717..394d690 100644 --- a/src/main/resources/snapshotRecipeDescriptors.yml +++ b/src/main/resources/snapshotRecipeDescriptors.yml @@ -349,7 +349,7 @@ rewrite-concourse: artifactId: "rewrite-concourse" rewrite-core: artifactId: "rewrite-core" - version: "8.11.0-SNAPSHOT" + version: "8.13.0-SNAPSHOT" markdownRecipeDescriptors: org.openrewrite.DeleteSourceFiles: name: "org.openrewrite.DeleteSourceFiles" @@ -421,7 +421,7 @@ rewrite-core: options: - name: "filePattern" type: "String" - required: true + required: false isImperative: true artifactId: "rewrite-core" org.openrewrite.IsInRepository: @@ -630,7 +630,7 @@ rewrite-core: required: false - name: "replace" type: "String" - required: true + required: false isImperative: true artifactId: "rewrite-core" org.openrewrite.text.FindMultiselect: @@ -770,6 +770,20 @@ rewrite-github-actions: required: false isImperative: true artifactId: "rewrite-github-actions" + org.openrewrite.github.ChangeActionVersion: + name: "org.openrewrite.github.ChangeActionVersion" + description: "Change the version of a GitHub Action in any `.github/workflows/*.yml`\ + \ file." + docLink: "https://docs.openrewrite.org/recipes/github/changeactionversion" + options: + - name: "action" + type: "String" + required: true + - name: "version" + type: "String" + required: true + isImperative: true + artifactId: "rewrite-github-actions" org.openrewrite.github.ChangeDependabotScheduleInterval: name: "org.openrewrite.github.ChangeDependabotScheduleInterval" description: "Change the schedule interval for a given package-ecosystem in\ @@ -870,7 +884,7 @@ rewrite-github-actions: artifactId: "rewrite-github-actions" rewrite-gradle: artifactId: "rewrite-gradle" - version: "8.11.0-SNAPSHOT" + version: "8.13.0-SNAPSHOT" markdownRecipeDescriptors: org.openrewrite.gradle.AddDependency: name: "org.openrewrite.gradle.AddDependency" @@ -1146,7 +1160,12 @@ rewrite-gradle: artifactId: "rewrite-gradle" org.openrewrite.gradle.UpdateGradleWrapper: name: "org.openrewrite.gradle.UpdateGradleWrapper" - description: "Update the version of Gradle used in an existing Gradle wrapper." + description: "Update the version of Gradle used in an existing Gradle wrapper.\ + \ Queries services.gradle.org to determine the available releases, but prefers\ + \ the artifact repository URL which already exists within the wrapper properties\ + \ file. If your artifact repository does not contain the same Gradle distributions\ + \ as services.gradle.org, then the recipe may suggest a version which is not\ + \ available in your artifact repository." docLink: "https://docs.openrewrite.org/recipes/gradle/updategradlewrapper" options: - name: "addIfMissing" @@ -1155,9 +1174,6 @@ rewrite-gradle: - name: "distribution" type: "String" required: false - - name: "repositoryUrl" - type: "String" - required: false - name: "version" type: "String" required: false @@ -1432,14 +1448,14 @@ rewrite-gradle: artifactId: "rewrite-gradle" org.openrewrite.gradle.security.UseHttpsForRepositories: name: "org.openrewrite.gradle.security.UseHttpsForRepositories" - description: "Use HTTPS for repository urls." + description: "Use HTTPS for repository URLs." docLink: "https://docs.openrewrite.org/recipes/gradle/security/usehttpsforrepositories" options: [] isImperative: true artifactId: "rewrite-gradle" rewrite-groovy: artifactId: "rewrite-groovy" - version: "8.11.0-SNAPSHOT" + version: "8.13.0-SNAPSHOT" markdownRecipeDescriptors: org.openrewrite.groovy.format.OmitParenthesesForLastArgumentLambda: name: "org.openrewrite.groovy.format.OmitParenthesesForLastArgumentLambda" @@ -1458,7 +1474,7 @@ rewrite-groovy: artifactId: "rewrite-groovy" rewrite-hcl: artifactId: "rewrite-hcl" - version: "8.11.0-SNAPSHOT" + version: "8.13.0-SNAPSHOT" markdownRecipeDescriptors: org.openrewrite.hcl.DeleteContent: name: "org.openrewrite.hcl.DeleteContent" @@ -1609,7 +1625,7 @@ rewrite-hibernate: artifactId: "rewrite-hibernate" rewrite-java: artifactId: "rewrite-java" - version: "8.11.0-SNAPSHOT" + version: "8.13.0-SNAPSHOT" markdownRecipeDescriptors: org.openrewrite.java.AddApache2LicenseHeader: name: "org.openrewrite.java.AddApache2LicenseHeader" @@ -2038,6 +2054,22 @@ rewrite-java: required: true isImperative: true artifactId: "rewrite-java" + org.openrewrite.java.ai.ClassDefinitionLength: + name: "org.openrewrite.java.ai.ClassDefinitionLength" + description: "Locates class definitions and predicts the number of token in\ + \ each." + docLink: "https://docs.openrewrite.org/recipes/java/ai/classdefinitionlength" + options: [] + isImperative: true + artifactId: "rewrite-java" + org.openrewrite.java.ai.MethodDefinitionLength: + name: "org.openrewrite.java.ai.MethodDefinitionLength" + description: "Locates method definitions and predicts the number of token in\ + \ each." + docLink: "https://docs.openrewrite.org/recipes/java/ai/methoddefinitionlength" + options: [] + isImperative: true + artifactId: "rewrite-java" org.openrewrite.java.format.AutoFormat: name: "org.openrewrite.java.format.AutoFormat" description: "Format Java code using a standard comprehensive set of Java formatting\ @@ -2454,16 +2486,14 @@ rewrite-java: artifactId: "rewrite-java" org.openrewrite.java.search.FindImplementations: name: "org.openrewrite.java.search.FindImplementations" - description: "Find source files that contain a class declaration implementing\ - \ a specific interface." + description: "Find class declarations which implement the specified type. If\ + \ the specified type is a class, its subclasses will be matched. If the specified\ + \ type is an interface, classes which implement it will be matched." docLink: "https://docs.openrewrite.org/recipes/java/search/findimplementations" options: - - name: "interfaceFullyQualifiedName" + - name: "typeName" type: "String" required: true - - name: "matchInherited" - type: "Boolean" - required: false isImperative: true artifactId: "rewrite-java" org.openrewrite.java.search.FindImports: @@ -2540,7 +2570,7 @@ rewrite-java: artifactId: "rewrite-java" org.openrewrite.java.search.FindTypeMappings: name: "org.openrewrite.java.search.FindTypeMappings" - description: "Find types mapped to J trees." + description: "Study the frequency of `J` types and their `JavaType` type attribution." docLink: "https://docs.openrewrite.org/recipes/java/search/findtypemappings" options: [] isImperative: true @@ -2566,7 +2596,7 @@ rewrite-java: options: - name: "checkTargetCompatibility" type: "Boolean" - required: true + required: false - name: "version" type: "String" required: true @@ -3332,6 +3362,15 @@ rewrite-java-security: options: [] isImperative: false artifactId: "rewrite-java-security" + org.openrewrite.java.security.servlet.CookieSetSecure: + name: "org.openrewrite.java.security.servlet.CookieSetSecure" + description: "Check for use of insecure cookies. Cookies should be marked as\ + \ secure. This ensures that the cookie is sent only over HTTPS to prevent\ + \ cross-site scripting attacks." + docLink: "https://docs.openrewrite.org/recipes/java/security/servlet/cookiesetsecure" + options: [] + isImperative: true + artifactId: "rewrite-java-security" org.openrewrite.java.security.spring.CsrfProtection: name: "org.openrewrite.java.security.spring.CsrfProtection" description: "Cross-Site Request Forgery (CSRF) is a type of attack that occurs\ @@ -3504,7 +3543,7 @@ rewrite-jenkins: artifactId: "rewrite-jenkins" rewrite-json: artifactId: "rewrite-json" - version: "8.11.0-SNAPSHOT" + version: "8.13.0-SNAPSHOT" markdownRecipeDescriptors: org.openrewrite.json.ChangeKey: name: "org.openrewrite.json.ChangeKey" @@ -3554,7 +3593,7 @@ rewrite-json: artifactId: "rewrite-json" rewrite-kotlin: artifactId: "rewrite-kotlin" - version: "1.8.0-SNAPSHOT" + version: "1.9.0-SNAPSHOT" markdownRecipeDescriptors: org.openrewrite.kotlin.FindKotlinSources: name: "org.openrewrite.kotlin.FindKotlinSources" @@ -3611,6 +3650,14 @@ rewrite-kotlin: options: [] isImperative: true artifactId: "rewrite-kotlin" + org.openrewrite.kotlin.cleanup.RemoveTrailingComma: + name: "org.openrewrite.kotlin.cleanup.RemoveTrailingComma" + description: "Remove trailing commas in variable, parameter, and class property\ + \ lists." + docLink: "https://docs.openrewrite.org/recipes/kotlin/cleanup/removetrailingcomma" + options: [] + isImperative: true + artifactId: "rewrite-kotlin" org.openrewrite.kotlin.cleanup.RemoveTrailingSemicolon: name: "org.openrewrite.kotlin.cleanup.RemoveTrailingSemicolon" description: "Some Java programmers may mistakenly add semicolons at the end\ @@ -3629,6 +3676,14 @@ rewrite-kotlin: options: [] isImperative: true artifactId: "rewrite-kotlin" + org.openrewrite.kotlin.cleanup.UnnecessaryTypeParentheses: + name: "org.openrewrite.kotlin.cleanup.UnnecessaryTypeParentheses" + description: "In Kotlin, it's possible to add redundant nested parentheses in\ + \ type definitions. This recipe is designed to remove those unnecessary parentheses." + docLink: "https://docs.openrewrite.org/recipes/kotlin/cleanup/unnecessarytypeparentheses" + options: [] + isImperative: true + artifactId: "rewrite-kotlin" org.openrewrite.kotlin.format.AutoFormat: name: "org.openrewrite.kotlin.format.AutoFormat" description: "Format Kotlin code using a standard comprehensive set of Kotlin\ @@ -4250,7 +4305,7 @@ rewrite-liberty: artifactId: "rewrite-liberty" rewrite-logging-frameworks: artifactId: "rewrite-logging-frameworks" - version: "2.3.0-SNAPSHOT" + version: "2.4.0-SNAPSHOT" markdownRecipeDescriptors: org.openrewrite.java.logging.ChangeLombokLogAnnotation: name: "org.openrewrite.java.logging.ChangeLombokLogAnnotation" @@ -4352,6 +4407,38 @@ rewrite-logging-frameworks: required: false isImperative: true artifactId: "rewrite-logging-frameworks" + org.openrewrite.java.logging.log4j.CommonsLoggingToLog4j: + name: "org.openrewrite.java.logging.log4j.CommonsLoggingToLog4j" + description: "Transforms code written using Apache Commons Logging to use Log4j\ + \ 2.x API." + docLink: "https://docs.openrewrite.org/recipes/java/logging/log4j/commonsloggingtolog4j" + options: [] + isImperative: false + artifactId: "rewrite-logging-frameworks" + org.openrewrite.java.logging.log4j.ConvertJulEntering: + name: "org.openrewrite.java.logging.log4j.ConvertJulEntering" + description: "Replaces JUL's Logger#entering method calls to Log4j API Logger#traceEntry\ + \ calls." + docLink: "https://docs.openrewrite.org/recipes/java/logging/log4j/convertjulentering" + options: [] + isImperative: true + artifactId: "rewrite-logging-frameworks" + org.openrewrite.java.logging.log4j.ConvertJulExiting: + name: "org.openrewrite.java.logging.log4j.ConvertJulExiting" + description: "Replaces JUL's Logger#exiting method calls to Log4j API Logger#traceEntry\ + \ calls." + docLink: "https://docs.openrewrite.org/recipes/java/logging/log4j/convertjulexiting" + options: [] + isImperative: true + artifactId: "rewrite-logging-frameworks" + org.openrewrite.java.logging.log4j.JulToLog4j: + name: "org.openrewrite.java.logging.log4j.JulToLog4j" + description: "Transforms code written using `java.util.logging` to use Log4j\ + \ 2.x API." + docLink: "https://docs.openrewrite.org/recipes/java/logging/log4j/jultolog4j" + options: [] + isImperative: false + artifactId: "rewrite-logging-frameworks" org.openrewrite.java.logging.log4j.Log4j1ToLog4j2: name: "org.openrewrite.java.logging.log4j.Log4j1ToLog4j2" description: "Migrates Log4j 1.x to Log4j 2.x." @@ -4377,6 +4464,13 @@ rewrite-logging-frameworks: options: [] isImperative: true artifactId: "rewrite-logging-frameworks" + org.openrewrite.java.logging.log4j.Slf4jToLog4j: + name: "org.openrewrite.java.logging.log4j.Slf4jToLog4j" + description: "Transforms code written using SLF4J to use Log4j 2.x API." + docLink: "https://docs.openrewrite.org/recipes/java/logging/log4j/slf4jtolog4j" + options: [] + isImperative: false + artifactId: "rewrite-logging-frameworks" org.openrewrite.java.logging.logback.Log4jAppenderToLogback: name: "org.openrewrite.java.logging.logback.Log4jAppenderToLogback" description: "Migrates custom Log4j 2.x Appender components to `logback-classic`.\ @@ -4520,7 +4614,7 @@ rewrite-logging-frameworks: artifactId: "rewrite-logging-frameworks" rewrite-maven: artifactId: "rewrite-maven" - version: "8.11.0-SNAPSHOT" + version: "8.13.0-SNAPSHOT" markdownRecipeDescriptors: org.openrewrite.maven.AddCommentToMavenDependency: name: "org.openrewrite.maven.AddCommentToMavenDependency" @@ -4741,7 +4835,7 @@ rewrite-maven: artifactId: "rewrite-maven" org.openrewrite.maven.AddRepository: name: "org.openrewrite.maven.AddRepository" - description: "Adds a new Maven Repository or Update a matching repository." + description: "Adds a new Maven Repository or updates a matching repository." docLink: "https://docs.openrewrite.org/recipes/maven/addrepository" options: - name: "id" @@ -4982,7 +5076,7 @@ rewrite-maven: \ plugin." docLink: "https://docs.openrewrite.org/recipes/maven/changeplugingroupidandartifactid" options: - - name: "newArtifactId" + - name: "newArtifact" type: "String" required: false - name: "newGroupId" @@ -5167,7 +5261,7 @@ rewrite-maven: artifactId: "rewrite-maven" org.openrewrite.maven.RemovePlugin: name: "org.openrewrite.maven.RemovePlugin" - description: "Remove the specified Maven plugin from the pom.xml." + description: "Remove the specified Maven plugin from the POM." docLink: "https://docs.openrewrite.org/recipes/maven/removeplugin" options: - name: "artifactId" @@ -5535,7 +5629,7 @@ rewrite-maven: artifactId: "rewrite-maven" org.openrewrite.maven.security.UseHttpsForRepositories: name: "org.openrewrite.maven.security.UseHttpsForRepositories" - description: "Use HTTPS for repository urls." + description: "Use HTTPS for repository URLs." docLink: "https://docs.openrewrite.org/recipes/maven/security/usehttpsforrepositories" options: [] isImperative: true @@ -5934,7 +6028,7 @@ rewrite-micronaut: artifactId: "rewrite-micronaut" rewrite-migrate-java: artifactId: "rewrite-migrate-java" - version: "2.5.0-SNAPSHOT" + version: "2.6.0-SNAPSHOT" markdownRecipeDescriptors: org.openrewrite.java.migrate.AddJDeprScanPlugin: name: "org.openrewrite.java.migrate.AddJDeprScanPlugin" @@ -5991,6 +6085,14 @@ rewrite-migrate-java: options: [] isImperative: true artifactId: "rewrite-migrate-java" + org.openrewrite.java.migrate.CastArraysAsListToList: + name: "org.openrewrite.java.migrate.CastArraysAsListToList" + description: "Convert code like `(Integer[]) Arrays.asList(1, 2, 3).toArray()`\ + \ to `Arrays.asList(1, 2, 3).toArray(new Integer[0])`." + docLink: "https://docs.openrewrite.org/recipes/java/migrate/castarraysaslisttolist" + options: [] + isImperative: true + artifactId: "rewrite-migrate-java" org.openrewrite.java.migrate.ChangeMethodInvocationReturnType: name: "org.openrewrite.java.migrate.ChangeMethodInvocationReturnType" description: "Changes the return type of a method invocation." @@ -6129,6 +6231,13 @@ rewrite-migrate-java: options: [] isImperative: false artifactId: "rewrite-migrate-java" + org.openrewrite.java.migrate.JpaCacheProperties: + name: "org.openrewrite.java.migrate.JpaCacheProperties" + description: "Sets an explicit value for the shared cache mode." + docLink: "https://docs.openrewrite.org/recipes/java/migrate/jpacacheproperties" + options: [] + isImperative: true + artifactId: "rewrite-migrate-java" org.openrewrite.java.migrate.Jre17AgentMainPreMainPublic: name: "org.openrewrite.java.migrate.Jre17AgentMainPreMainPublic" description: "Check for a behavior change in Java agents." @@ -6956,6 +7065,14 @@ rewrite-migrate-java: options: [] isImperative: true artifactId: "rewrite-migrate-java" + org.openrewrite.java.migrate.jakarta.BeanValidationMessages: + name: "org.openrewrite.java.migrate.jakarta.BeanValidationMessages" + description: "Migrate `javax.validation.constraints` messages found in Java\ + \ files to `jakarta.validation.constraints` equivalents." + docLink: "https://docs.openrewrite.org/recipes/java/migrate/jakarta/beanvalidationmessages" + options: [] + isImperative: true + artifactId: "rewrite-migrate-java" org.openrewrite.java.migrate.jakarta.EhcacheJavaxToJakarta: name: "org.openrewrite.java.migrate.jakarta.EhcacheJavaxToJakarta" description: "Java EE has been rebranded to Jakarta EE. This recipe replaces\ @@ -6965,6 +7082,14 @@ rewrite-migrate-java: options: [] isImperative: false artifactId: "rewrite-migrate-java" + org.openrewrite.java.migrate.jakarta.Faces2xMigrationToJakarta4x: + name: "org.openrewrite.java.migrate.jakarta.Faces2xMigrationToJakarta4x" + description: "Jakarta EE 10 uses Faces 4.0 a major upgrade to Jakarta packages\ + \ and XML namespaces." + docLink: "https://docs.openrewrite.org/recipes/java/migrate/jakarta/faces2xmigrationtojakarta4x" + options: [] + isImperative: false + artifactId: "rewrite-migrate-java" org.openrewrite.java.migrate.jakarta.FacesJNDINamesChanged: name: "org.openrewrite.java.migrate.jakarta.FacesJNDINamesChanged" description: "The `jsf/ClientSideSecretKey` JNDI name has been renamed to `faces/ClientSideSecretKey`,\ @@ -6999,6 +7124,22 @@ rewrite-migrate-java: options: [] isImperative: false artifactId: "rewrite-migrate-java" + org.openrewrite.java.migrate.jakarta.JakartaFacesEcmaScript: + name: "org.openrewrite.java.migrate.jakarta.JakartaFacesEcmaScript" + description: "Convert JSF to Faces values inside JavaScript,TypeScript, and\ + \ Properties files" + docLink: "https://docs.openrewrite.org/recipes/java/migrate/jakarta/jakartafacesecmascript" + options: [] + isImperative: false + artifactId: "rewrite-migrate-java" + org.openrewrite.java.migrate.jakarta.JakartaFacesXhtml: + name: "org.openrewrite.java.migrate.jakarta.JakartaFacesXhtml" + description: "Find and replace legacy JSF namespaces and javax references with\ + \ Jakarta Faces values in XHTML files." + docLink: "https://docs.openrewrite.org/recipes/java/migrate/jakarta/jakartafacesxhtml" + options: [] + isImperative: false + artifactId: "rewrite-migrate-java" org.openrewrite.java.migrate.jakarta.JavaxActivationMigrationToJakartaActivation: name: "org.openrewrite.java.migrate.jakarta.JavaxActivationMigrationToJakartaActivation" description: "Java EE has been rebranded to Jakarta EE, necessitating a package\ @@ -7055,6 +7196,14 @@ rewrite-migrate-java: options: [] isImperative: false artifactId: "rewrite-migrate-java" + org.openrewrite.java.migrate.jakarta.JavaxBeansXmlToJakartaBeansXml: + name: "org.openrewrite.java.migrate.jakarta.JavaxBeansXmlToJakartaBeansXml" + description: "Java EE has been rebranded to Jakarta EE, necessitating an XML\ + \ namespace relocation." + docLink: "https://docs.openrewrite.org/recipes/java/migrate/jakarta/javaxbeansxmltojakartabeansxml" + options: [] + isImperative: false + artifactId: "rewrite-migrate-java" org.openrewrite.java.migrate.jakarta.JavaxDecoratorToJakartaDecorator: name: "org.openrewrite.java.migrate.jakarta.JavaxDecoratorToJakartaDecorator" description: "Java EE has been rebranded to Jakarta EE, necessitating a package\ @@ -7087,6 +7236,22 @@ rewrite-migrate-java: options: [] isImperative: false artifactId: "rewrite-migrate-java" + org.openrewrite.java.migrate.jakarta.JavaxFacesConfigXmlToJakartaFacesConfigXml: + name: "org.openrewrite.java.migrate.jakarta.JavaxFacesConfigXmlToJakartaFacesConfigXml" + description: "Java EE has been rebranded to Jakarta EE, necessitating an XML\ + \ namespace relocation." + docLink: "https://docs.openrewrite.org/recipes/java/migrate/jakarta/javaxfacesconfigxmltojakartafacesconfigxml" + options: [] + isImperative: false + artifactId: "rewrite-migrate-java" + org.openrewrite.java.migrate.jakarta.JavaxFacesTagLibraryXmlToJakartaFacesTagLibraryXml: + name: "org.openrewrite.java.migrate.jakarta.JavaxFacesTagLibraryXmlToJakartaFacesTagLibraryXml" + description: "Java EE has been rebranded to Jakarta EE, necessitating an XML\ + \ namespace relocation." + docLink: "https://docs.openrewrite.org/recipes/java/migrate/jakarta/javaxfacestaglibraryxmltojakartafacestaglibraryxml" + options: [] + isImperative: false + artifactId: "rewrite-migrate-java" org.openrewrite.java.migrate.jakarta.JavaxFacesToJakartaFaces: name: "org.openrewrite.java.migrate.jakarta.JavaxFacesToJakartaFaces" description: "Java EE has been rebranded to Jakarta EE, necessitating a package\ @@ -7191,6 +7356,13 @@ rewrite-migrate-java: options: [] isImperative: false artifactId: "rewrite-migrate-java" + org.openrewrite.java.migrate.jakarta.JavaxToJakartaCdiExtensions: + name: "org.openrewrite.java.migrate.jakarta.JavaxToJakartaCdiExtensions" + description: "Rename `javax.enterprise.inject.spi.Extension` to `jakarta.enterprise.inject.spi.Extension`." + docLink: "https://docs.openrewrite.org/recipes/java/migrate/jakarta/javaxtojakartacdiextensions" + options: [] + isImperative: false + artifactId: "rewrite-migrate-java" org.openrewrite.java.migrate.jakarta.JavaxTransactionMigrationToJakartaTransaction: name: "org.openrewrite.java.migrate.jakarta.JavaxTransactionMigrationToJakartaTransaction" description: "Java EE has been rebranded to Jakarta EE, necessitating a package\ @@ -7207,6 +7379,22 @@ rewrite-migrate-java: options: [] isImperative: false artifactId: "rewrite-migrate-java" + org.openrewrite.java.migrate.jakarta.JavaxWebFragmentXmlToJakartaWebFragmentXml: + name: "org.openrewrite.java.migrate.jakarta.JavaxWebFragmentXmlToJakartaWebFragmentXml" + description: "Java EE has been rebranded to Jakarta EE, necessitating an XML\ + \ namespace relocation." + docLink: "https://docs.openrewrite.org/recipes/java/migrate/jakarta/javaxwebfragmentxmltojakartawebfragmentxml" + options: [] + isImperative: false + artifactId: "rewrite-migrate-java" + org.openrewrite.java.migrate.jakarta.JavaxWebXmlToJakartaWebXml: + name: "org.openrewrite.java.migrate.jakarta.JavaxWebXmlToJakartaWebXml" + description: "Java EE has been rebranded to Jakarta EE, necessitating an XML\ + \ namespace relocation." + docLink: "https://docs.openrewrite.org/recipes/java/migrate/jakarta/javaxwebxmltojakartawebxml" + options: [] + isImperative: false + artifactId: "rewrite-migrate-java" org.openrewrite.java.migrate.jakarta.JavaxWebsocketToJakartaWebsocket: name: "org.openrewrite.java.migrate.jakarta.JavaxWebsocketToJakartaWebsocket" description: "Java EE has been rebranded to Jakarta EE, necessitating a package\ @@ -7349,6 +7537,14 @@ rewrite-migrate-java: options: [] isImperative: false artifactId: "rewrite-migrate-java" + org.openrewrite.java.migrate.jakarta.UpgradeFacesOpenSourceLibraries: + name: "org.openrewrite.java.migrate.jakarta.UpgradeFacesOpenSourceLibraries" + description: "Upgrade PrimeFaces, OmniFaces, and MyFaces libraries to Jakarta\ + \ EE10 versions." + docLink: "https://docs.openrewrite.org/recipes/java/migrate/jakarta/upgradefacesopensourcelibraries" + options: [] + isImperative: false + artifactId: "rewrite-migrate-java" org.openrewrite.java.migrate.jakarta.WsWsocServerContainerDeprecation: name: "org.openrewrite.java.migrate.jakarta.WsWsocServerContainerDeprecation" description: "Deprecated `WsWsocServerContainer.doUpgrade(..)` is replaced by\ @@ -8526,7 +8722,7 @@ rewrite-okhttp: artifactId: "rewrite-okhttp" rewrite-properties: artifactId: "rewrite-properties" - version: "8.11.0-SNAPSHOT" + version: "8.13.0-SNAPSHOT" markdownRecipeDescriptors: org.openrewrite.properties.AddProperty: name: "org.openrewrite.properties.AddProperty" @@ -8535,6 +8731,9 @@ rewrite-properties: \ the property and value." docLink: "https://docs.openrewrite.org/recipes/properties/addproperty" options: + - name: "comment" + type: "String" + required: false - name: "delimiter" type: "String" required: false @@ -8678,6 +8877,29 @@ rewrite-quarkus: artifactId: "rewrite-quarkus" version: "2.1.0-SNAPSHOT" markdownRecipeDescriptors: + org.openrewrite.quarkus.AddQuarkusProperty: + name: "org.openrewrite.quarkus.AddQuarkusProperty" + description: "Add a Quarkus configuration property to an existing configuration\ + \ file if it does not already exist in that file." + docLink: "https://docs.openrewrite.org/recipes/quarkus/addquarkusproperty" + options: + - name: "comment" + type: "String" + required: false + - name: "pathExpressions" + type: "List" + required: false + - name: "profile" + type: "String" + required: false + - name: "property" + type: "String" + required: true + - name: "value" + type: "String" + required: true + isImperative: true + artifactId: "rewrite-quarkus" org.openrewrite.quarkus.ConfigPropertiesToConfigMapping: name: "org.openrewrite.quarkus.ConfigPropertiesToConfigMapping" description: "Migrate Quarkus configuration classes annotated with `@ConfigProperties`\ @@ -9055,7 +9277,16 @@ rewrite-spring: name: "org.openrewrite.java.spring.RenameBean" description: "Renames a Spring bean, both declaration and references." docLink: "https://docs.openrewrite.org/recipes/java/spring/renamebean" - options: [] + options: + - name: "newName" + type: "String" + required: true + - name: "oldName" + type: "String" + required: true + - name: "type" + type: "String" + required: false isImperative: true artifactId: "rewrite-spring" org.openrewrite.java.spring.SeparateApplicationYamlByProfile: @@ -10323,6 +10554,14 @@ rewrite-spring: options: [] isImperative: false artifactId: "rewrite-spring" + org.openrewrite.java.spring.security6.ApplyToWithLambdaDsl: + name: "org.openrewrite.java.spring.security6.ApplyToWithLambdaDsl" + description: "Converts `HttpSecurity::apply` chained call from Spring Security\ + \ pre 6.2.x into new lambda DSL style calls and removes `and()` methods." + docLink: "https://docs.openrewrite.org/recipes/java/spring/security6/applytowithlambdadsl" + options: [] + isImperative: true + artifactId: "rewrite-spring" org.openrewrite.java.spring.security6.PropagateAuthenticationServiceExceptions: name: "org.openrewrite.java.spring.security6.PropagateAuthenticationServiceExceptions" description: "Remove any calls matching `AuthenticationEntryPointFailureHandler.setRethrowAuthenticationServiceException(true)`.\ @@ -12957,6 +13196,14 @@ rewrite-testing-frameworks: options: [] isImperative: true artifactId: "rewrite-testing-frameworks" + org.openrewrite.java.testing.junit5.AddMissingTestBeforeAfterAnnotations: + name: "org.openrewrite.java.testing.junit5.AddMissingTestBeforeAfterAnnotations" + description: "Adds `@BeforeEach`, `@AfterEach`, `@Test` to methods overriding\ + \ superclass methods if the annotations are present on the superclass method." + docLink: "https://docs.openrewrite.org/recipes/java/testing/junit5/addmissingtestbeforeafterannotations" + options: [] + isImperative: true + artifactId: "rewrite-testing-frameworks" org.openrewrite.java.testing.junit5.AddParameterizedTestAnnotation: name: "org.openrewrite.java.testing.junit5.AddParameterizedTestAnnotation" description: "Add missing `@ParameterizedTest` annotation when `@ValueSource`\ @@ -13288,6 +13535,13 @@ rewrite-testing-frameworks: options: [] isImperative: false artifactId: "rewrite-testing-frameworks" + org.openrewrite.java.testing.mockito.Mockito1to5Migration: + name: "org.openrewrite.java.testing.mockito.Mockito1to5Migration" + description: "Upgrade Mockito from 1.x to 5.x." + docLink: "https://docs.openrewrite.org/recipes/java/testing/mockito/mockito1to5migration" + options: [] + isImperative: false + artifactId: "rewrite-testing-frameworks" org.openrewrite.java.testing.mockito.MockitoJUnitRunnerSilentToExtension: name: "org.openrewrite.java.testing.mockito.MockitoJUnitRunnerSilentToExtension" description: "Replace `@RunWith(MockitoJUnitRunner.Silent.class)` with `@ExtendWith(MockitoExtension.class)`\ @@ -13353,11 +13607,11 @@ rewrite-testing-frameworks: artifactId: "rewrite-testing-frameworks" rewrite-xml: artifactId: "rewrite-xml" - version: "8.11.0-SNAPSHOT" + version: "8.13.0-SNAPSHOT" markdownRecipeDescriptors: org.openrewrite.xml.AddCommentToXmlTag: name: "org.openrewrite.xml.AddCommentToXmlTag" - description: "Adds a comment as the first element in a `XML` tag." + description: "Adds a comment as the first element in an XML tag." docLink: "https://docs.openrewrite.org/recipes/xml/addcommenttoxmltag" options: - name: "commentText" @@ -13393,7 +13647,7 @@ rewrite-xml: artifactId: "rewrite-xml" org.openrewrite.xml.ChangeTagAttribute: name: "org.openrewrite.xml.ChangeTagAttribute" - description: "Alters XML Attribute value within specified element." + description: "Alters XML attribute value on a specified element." docLink: "https://docs.openrewrite.org/recipes/xml/changetagattribute" options: - name: "attributeName" @@ -13583,7 +13837,7 @@ rewrite-xml: artifactId: "rewrite-xml" rewrite-yaml: artifactId: "rewrite-yaml" - version: "8.11.0-SNAPSHOT" + version: "8.13.0-SNAPSHOT" markdownRecipeDescriptors: org.openrewrite.yaml.AppendToSequence: name: "org.openrewrite.yaml.AppendToSequence"