Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions docs/changelog/8-48-0-Release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
---
description: What's changed in OpenRewrite version 8.48.0.
---

# 8.48.0 release (2025-03-11)

_Total recipe count: 3092_

:::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).
:::

## New Recipes

* [io.moderne.moddy.ImproveRecipeDescriptors](https://docs.openrewrite.org/recipes/moddy/improverecipedescriptors): Improving recipe display names and descriptions in turn improves Moddy.
* [io.quarkus.updates.camel.camel410.CamelQuarkusMigrationRecipe](https://docs.openrewrite.org/recipes/io/quarkus/updates/camel/camel410/camelquarkusmigrationrecipe): Migrates `camel 4.9` quarkus application to `camel 4.10`.
* [io.quarkus.updates.camel.camel49.CamelQuarkusMigrationRecipe](https://docs.openrewrite.org/recipes/io/quarkus/updates/camel/camel49/camelquarkusmigrationrecipe): Migrates `camel 4.8` quarkus application to `camel 4.9`.
* [io.quarkus.updates.core.quarkus319.ConfigurationPropertiesChange](https://docs.openrewrite.org/recipes/io/quarkus/updates/core/quarkus319/configurationpropertieschange):
* [io.quarkus.updates.core.quarkus319.MoveAccessTokenAnnotationToNewPackage](https://docs.openrewrite.org/recipes/io/quarkus/updates/core/quarkus319/moveaccesstokenannotationtonewpackage):
* [org.openrewrite.codemods.Biome](https://docs.openrewrite.org/recipes/codemods/biome): Run [Biome](https://biomejs.dev/) recommended settings on your projects.
* [org.openrewrite.java.migrate.net.URLConstructorToURICreate](https://docs.openrewrite.org/recipes/java/migrate/net/urlconstructortouricreate): Converts `new URL(String)` constructor to `URI.create(String).toURL()`.
* [org.openrewrite.java.migrate.net.URLConstructorsToNewURI](https://docs.openrewrite.org/recipes/java/migrate/net/urlconstructorstonewuri): Converts `new URL(String, ..)` constructors to `new URI(String, ..).toURL()`.
* [software.amazon.awssdk.v2migration.AddTransferManagerDependency](https://docs.openrewrite.org/recipes/software/amazon/awssdk/v2migration/addtransfermanagerdependency): This recipe will add the Java v2 S3 Transfer Manager dependency if v1 Transfer Manager is used
* [software.amazon.awssdk.v2migration.AwsSdkJavaV1ToV2Experimental](https://docs.openrewrite.org/recipes/software/amazon/awssdk/v2migration/awssdkjavav1tov2experimental): This recipe will apply changes required for migrating from the AWS SDK for Java v1 to the AWS SDK for Java v2, including S3 Transfer Manager. Transforms for Transfer Manager are incomplete and in-progress.
* [software.amazon.awssdk.v2migration.ByteBufferToSdkBytes](https://docs.openrewrite.org/recipes/software/amazon/awssdk/v2migration/bytebuffertosdkbytes): Convert ByteBuffer to SdkBytes by calling SdkBytes#fromByteBuffer
* [software.amazon.awssdk.v2migration.ChangeTransferManagerTypes](https://docs.openrewrite.org/recipes/software/amazon/awssdk/v2migration/changetransfermanagertypes): Change SDK TransferManager types from v1 to v2.
* [software.amazon.awssdk.v2migration.S3NonStreamingRequestToV2Complex](https://docs.openrewrite.org/recipes/software/amazon/awssdk/v2migration/s3nonstreamingrequesttov2complex): Transform usage of V1 S3 non-streaming requests to V2.
* [software.amazon.awssdk.v2migration.TransferManagerMethodsToV2](https://docs.openrewrite.org/recipes/software/amazon/awssdk/v2migration/transfermanagermethodstov2): Transfer Manager Methods to V2

## Removed Recipes

* **org.openrewrite.java.migrate.net.URLConstructorsToURIRecipes**: Refaster template recipes for `org.openrewrite.java.migrate.net.URLConstructorsToURI`.
* **org.openrewrite.java.migrate.net.URLConstructorsToURIRecipes$URLFourArgumentConstructorRecipe**: Converts `new URL(String, String, int, String)` constructors to `new URI(...).toURL()`.
* **org.openrewrite.java.migrate.net.URLConstructorsToURIRecipes$URLSingleArgumentConstructorRecipe**: Converts `new URL(String)` constructors to `URI.create(String).toURL()`.
* **org.openrewrite.java.migrate.net.URLConstructorsToURIRecipes$URLThreeArgumentConstructorRecipe**: Converts `new URL(String, String, String)` constructors to `new URI(...).toURL()`.

## Changed Recipes

* [org.openrewrite.yaml.MergeYaml](https://docs.openrewrite.org/recipes/yaml/mergeyaml) was changed:
* Old 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 }`
* New Options:
* `acceptTheirs: { type: Boolean, required: false }`
* `createNewKeys: { 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 }`
20 changes: 10 additions & 10 deletions docs/recipes/ai/timefold/solver/migration/changeversion.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,27 @@ This recipe is available under the [Apache License 2.0](https://www.apache.org/l
<TabItem value="recipe-list" label="Recipe List" >
* [Change Maven project property value](../../../../maven/changepropertyvalue)
* key: `version.ai.timefold.solver`
* newValue: `1.19.0`
* newValue: `1.20.0`
* addIfMissing: `false`
* trustParent: `true`
* [Change Maven project property value](../../../../maven/changepropertyvalue)
* key: `version.timefold`
* newValue: `1.19.0`
* newValue: `1.20.0`
* addIfMissing: `false`
* trustParent: `true`
* [Change Maven project property value](../../../../maven/changepropertyvalue)
* key: `ai.timefold.solver.version`
* newValue: `1.19.0`
* newValue: `1.20.0`
* addIfMissing: `false`
* trustParent: `true`
* [Change Maven project property value](../../../../maven/changepropertyvalue)
* key: `timefold.version`
* newValue: `1.19.0`
* newValue: `1.20.0`
* addIfMissing: `false`
* trustParent: `true`
* [Change Maven project property value](../../../../maven/changepropertyvalue)
* key: `timefoldVersion`
* newValue: `1.19.0`
* newValue: `1.20.0`
* addIfMissing: `false`
* trustParent: `true`

Expand All @@ -68,27 +68,27 @@ description: |
recipeList:
- org.openrewrite.maven.ChangePropertyValue:
key: version.ai.timefold.solver
newValue: 1.19.0
newValue: 1.20.0
addIfMissing: false
trustParent: true
- org.openrewrite.maven.ChangePropertyValue:
key: version.timefold
newValue: 1.19.0
newValue: 1.20.0
addIfMissing: false
trustParent: true
- org.openrewrite.maven.ChangePropertyValue:
key: ai.timefold.solver.version
newValue: 1.19.0
newValue: 1.20.0
addIfMissing: false
trustParent: true
- org.openrewrite.maven.ChangePropertyValue:
key: timefold.version
newValue: 1.19.0
newValue: 1.20.0
addIfMissing: false
trustParent: true
- org.openrewrite.maven.ChangePropertyValue:
key: timefoldVersion
newValue: 1.19.0
newValue: 1.20.0
addIfMissing: false
trustParent: true

Expand Down
2 changes: 1 addition & 1 deletion docs/recipes/analysis/controlflow/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

## Recipes

* [Control Flow Visualization](./controlflowvisualization.md)
* [Control flow visualization](./controlflowvisualization.md)


8 changes: 4 additions & 4 deletions docs/recipes/analysis/controlflow/controlflowvisualization.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
sidebar_label: "Control Flow Visualization"
sidebar_label: "Control flow visualization"
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Control Flow Visualization
# Control flow visualization

**org.openrewrite.analysis.controlflow.ControlFlowVisualization**

Expand Down Expand Up @@ -35,7 +35,7 @@ Here's how you can define and customize such a recipe within your rewrite.yml:
---
type: specs.openrewrite.org/v1beta/recipe
name: com.yourorg.ControlFlowVisualizationExample
displayName: Control Flow Visualization example
displayName: Control flow visualization example
recipeList:
- org.openrewrite.analysis.controlflow.ControlFlowVisualization:
includeDotfile: false
Expand Down Expand Up @@ -169,4 +169,4 @@ _Statistics used in analyzing the performance of recipes._


## Contributors
[Jonathan Leitschuh](mailto:Jonathan.Leitschuh@gmail.com), [Knut Wannheden](mailto:knut.wannheden@gmail.com), [Jonathan Schnéider](mailto:jkschneider@gmail.com), [Tim te Beek](mailto:tim@moderne.io)
[Jonathan Leitschuh](mailto:Jonathan.Leitschuh@gmail.com), [lingenj](mailto:jacob.van.lingen@moderne.io), [Knut Wannheden](mailto:knut.wannheden@gmail.com), [Jonathan Schnéider](mailto:jkschneider@gmail.com), [Tim te Beek](mailto:tim@moderne.io)
1 change: 1 addition & 0 deletions docs/recipes/codemods/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ _Recipes that run JavaScript codemods._
## Recipes

* [Applies a codemod to all source files](./applycodemod.md)
* [Biome recommendations](./biome.md)
* [Lint UI5 projects with UI5 linter](./ui5.md)
* [Lint source code with ESLint](./eslint.md)
* [Run Putout](./putout.md)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
---
sidebar_label: "Convert new URL(String, String, int, String) to new URI(...).toURL()"
sidebar_label: "Biome recommendations"
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Convert `new URL(String, String, int, String)` to `new URI(...).toURL()`
# Biome recommendations

**org.openrewrite.java.migrate.net.URLConstructorsToURIRecipes$URLFourArgumentConstructorRecipe**
**org.openrewrite.codemods.Biome**

_Converts `new URL(String, String, int, String)` constructors to `new URI(...).toURL()`._
_Run [Biome](https://biomejs.dev/) recommended settings on your projects._

## Recipe source

[GitHub](https://github.com/openrewrite/rewrite-migrate-java/blob/main/src/main/java/org/openrewrite/java/migrate/net/URLConstructorsToURI.java),
[Issue Tracker](https://github.com/openrewrite/rewrite-migrate-java/issues),
[Maven Central](https://central.sonatype.com/artifact/org.openrewrite.recipe/rewrite-migrate-java/)
[GitHub](https://github.com/openrewrite/rewrite-codemods/blob/main/src/main/java/org/openrewrite/codemods/Biome.java),
[Issue Tracker](https://github.com/openrewrite/rewrite-codemods/issues),
[Maven Central](https://central.sonatype.com/artifact/org.openrewrite.recipe/rewrite-codemods/)
## License

This recipe is available under the [Moderne Source Available License](https://docs.moderne.io/licensing/moderne-source-available-license/).


## Usage

This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-migrate-java` in your build file or by running a shell command (in which case no build changes are needed):
This recipe has no required configuration options. It can be activated by adding a dependency on `org.openrewrite.recipe:rewrite-codemods` in your build file or by running a shell command (in which case no build changes are needed):
<Tabs groupId="projectType">
<TabItem value="gradle" label="Gradle">

Expand All @@ -35,7 +35,7 @@ plugins {
}

rewrite {
activeRecipe("org.openrewrite.java.migrate.net.URLConstructorsToURIRecipes$URLFourArgumentConstructorRecipe")
activeRecipe("org.openrewrite.codemods.Biome")
setExportDatatables(true)
}

Expand All @@ -44,7 +44,7 @@ repositories {
}

dependencies {
rewrite("org.openrewrite.recipe:rewrite-migrate-java:{{VERSION_ORG_OPENREWRITE_RECIPE_REWRITE_MIGRATE_JAVA}}")
rewrite("org.openrewrite.recipe:rewrite-codemods:{{VERSION_ORG_OPENREWRITE_RECIPE_REWRITE_CODEMODS}}")
}
```

Expand All @@ -65,10 +65,10 @@ initscript {
rootProject {
plugins.apply(org.openrewrite.gradle.RewritePlugin)
dependencies {
rewrite("org.openrewrite.recipe:rewrite-migrate-java:{{VERSION_ORG_OPENREWRITE_RECIPE_REWRITE_MIGRATE_JAVA}}")
rewrite("org.openrewrite.recipe:rewrite-codemods:{{VERSION_ORG_OPENREWRITE_RECIPE_REWRITE_CODEMODS}}")
}
rewrite {
activeRecipe("org.openrewrite.java.migrate.net.URLConstructorsToURIRecipes$URLFourArgumentConstructorRecipe")
activeRecipe("org.openrewrite.codemods.Biome")
setExportDatatables(true)
}
afterEvaluate {
Expand Down Expand Up @@ -103,14 +103,14 @@ gradle --init-script init.gradle rewriteRun
<configuration>
<exportDatatables>true</exportDatatables>
<activeRecipes>
<recipe>org.openrewrite.java.migrate.net.URLConstructorsToURIRecipes$URLFourArgumentConstructorRecipe</recipe>
<recipe>org.openrewrite.codemods.Biome</recipe>
</activeRecipes>
</configuration>
<dependencies>
<dependency>
<groupId>org.openrewrite.recipe</groupId>
<artifactId>rewrite-migrate-java</artifactId>
<version>{{VERSION_ORG_OPENREWRITE_RECIPE_REWRITE_MIGRATE_JAVA}}</version>
<artifactId>rewrite-codemods</artifactId>
<version>{{VERSION_ORG_OPENREWRITE_RECIPE_REWRITE_CODEMODS}}</version>
</dependency>
</dependencies>
</plugin>
Expand All @@ -126,20 +126,20 @@ gradle --init-script init.gradle rewriteRun
You will need to have [Maven](https://maven.apache.org/download.cgi) installed on your machine before you can run the following command.

```shell title="shell"
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-migrate-java:RELEASE -Drewrite.activeRecipes=org.openrewrite.java.migrate.net.URLConstructorsToURIRecipes$URLFourArgumentConstructorRecipe -Drewrite.exportDatatables=true
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-codemods:RELEASE -Drewrite.activeRecipes=org.openrewrite.codemods.Biome -Drewrite.exportDatatables=true
```
</TabItem>
<TabItem value="moderne-cli" label="Moderne CLI">

You will need to have configured the [Moderne CLI](https://docs.moderne.io/user-documentation/moderne-cli/getting-started/cli-intro) on your machine before you can run the following command.

```shell title="shell"
mod run . --recipe URLConstructorsToURIRecipes$URLFourArgumentConstructorRecipe
mod run . --recipe Biome
```

If the recipe is not available locally, then you can install it using:
```shell
mod config recipes jar install org.openrewrite.recipe:rewrite-migrate-java:{{VERSION_ORG_OPENREWRITE_RECIPE_REWRITE_MIGRATE_JAVA}}
mod config recipes jar install org.openrewrite.recipe:rewrite-codemods:{{VERSION_ORG_OPENREWRITE_RECIPE_REWRITE_CODEMODS}}
```
</TabItem>
</Tabs>
Expand All @@ -148,7 +148,7 @@ mod config recipes jar install org.openrewrite.recipe:rewrite-migrate-java:{{VER

import RecipeCallout from '@site/src/components/ModerneLink';

<RecipeCallout link="https://app.moderne.io/recipes/org.openrewrite.java.migrate.net.URLConstructorsToURIRecipes$URLFourArgumentConstructorRecipe" />
<RecipeCallout link="https://app.moderne.io/recipes/org.openrewrite.codemods.Biome" />

The community edition of the Moderne platform enables you to easily run recipes across thousands of open-source repositories.

Expand Down
2 changes: 1 addition & 1 deletion docs/recipes/core/listruntimeclasspath.md
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,4 @@ _Statistics used in analyzing the performance of recipes._


## Contributors
[Sam Snyder](mailto:sam@moderne.io), [Jonathan Schnéider](mailto:jkschneider@gmail.com), [Niels de Bruin](mailto:nielsdebruin@gmail.com)
[Sam Snyder](mailto:sam@moderne.io), [Jonathan Schnéider](mailto:jkschneider@gmail.com)
2 changes: 2 additions & 0 deletions docs/recipes/gitlab/addcomponent.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ This recipe is available under the [Moderne Source Available License](https://do
* acceptTheirs: `false`
* objectIdentifyingProperty: `component`
* filePattern: `.gitlab-ci.yml`
* createNewKeys: `true`

</TabItem>

Expand All @@ -65,6 +66,7 @@ recipeList:
acceptTheirs: false
objectIdentifyingProperty: component
filePattern: .gitlab-ci.yml
createNewKeys: true

```
</TabItem>
Expand Down
2 changes: 2 additions & 0 deletions docs/recipes/gitlab/addstages.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ This recipe is available under the [Moderne Source Available License](https://do
* yaml: `stages: - `
* objectIdentifyingProperty: `stages`
* filePattern: `.gitlab-ci.yml`
* createNewKeys: `true`

</TabItem>

Expand All @@ -59,6 +60,7 @@ recipeList:
-
objectIdentifyingProperty: stages
filePattern: .gitlab-ci.yml
createNewKeys: true

```
</TabItem>
Expand Down
2 changes: 2 additions & 0 deletions docs/recipes/gitlab/addtemplate.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ This recipe is available under the [Moderne Source Available License](https://do
* acceptTheirs: `false`
* objectIdentifyingProperty: `template`
* filePattern: `.gitlab-ci.yml`
* createNewKeys: `true`

</TabItem>

Expand All @@ -58,6 +59,7 @@ recipeList:
acceptTheirs: false
objectIdentifyingProperty: template
filePattern: .gitlab-ci.yml
createNewKeys: true

```
</TabItem>
Expand Down
2 changes: 1 addition & 1 deletion docs/recipes/gradle/dependencyconstrainttorule.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,4 @@ _Statistics used in analyzing the performance of recipes._


## Contributors
[Sam Snyder](mailto:sam@moderne.io), [Tim te Beek](mailto:tim@moderne.io), [Niels de Bruin](mailto:nielsdebruin@gmail.com), [Jonathan Schnéider](mailto:jkschneider@gmail.com)
[Sam Snyder](mailto:sam@moderne.io), [Tim te Beek](mailto:tim@moderne.io), [Jonathan Schnéider](mailto:jkschneider@gmail.com), [Niels de Bruin](mailto:nielsdebruin@gmail.com)
2 changes: 1 addition & 1 deletion docs/recipes/gradle/enabledevelocitybuildcache.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,4 +161,4 @@ _Statistics used in analyzing the performance of recipes._


## Contributors
[Niels de Bruin](mailto:nielsdebruin@gmail.com)
[Niels de Bruin](mailto:nielsdebruin@gmail.com), [Sam Snyder](mailto:sam@moderne.io)
2 changes: 1 addition & 1 deletion docs/recipes/gradle/search/finddependency.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,4 @@ _Statistics used in analyzing the performance of recipes._


## Contributors
[Jonathan Schneider](mailto:jkschneider@gmail.com), [Sam Snyder](mailto:sam@moderne.io), [Tim te Beek](mailto:tim@moderne.io), [Patrick](mailto:patway99@gmail.com)
[Sam Snyder](mailto:sam@moderne.io), [Jonathan Schneider](mailto:jkschneider@gmail.com), [Merlin Bögershausen](mailto:merlin.boegershausen@rwth-aachen.de), [Tim te Beek](mailto:tim@moderne.io), [Patrick](mailto:patway99@gmail.com)
6 changes: 3 additions & 3 deletions docs/recipes/gradle/search/findjvmtestsuites.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ The community edition of the Moderne platform enables you to easily run recipes
Please [contact Moderne](https://moderne.io/product) for more information about safely running the recipes on your own codebase in a private SaaS.
## Data Tables

### JVMTestSuites defined
### `JVMTestSuites`
**org.openrewrite.gradle.table.JVMTestSuitesDefined**

_JVMTestSuites defined._
_The Gradle `JVMTestSuites` that are configured in a build._

| Column Name | Description |
| ----------- | ----------- |
| JVMTestSuite name | Name of the defined JVMTestSuite. |
| `JVMTestSuite` name | Name of the defined `JVMTestSuite`. |

### Source files that had results
**org.openrewrite.table.SourcesFileResults**
Expand Down
2 changes: 1 addition & 1 deletion docs/recipes/gradle/updatejavacompatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ _Statistics used in analyzing the performance of recipes._


## Contributors
[Shannon Pamperl](mailto:shanman190@gmail.com), [Ken Little](mailto:krl49700@gmail.com), [Tim te Beek](mailto:tim@moderne.io), [Jonathan Schneider](mailto:jkschneider@gmail.com), [Sam Snyder](mailto:sam@moderne.io)
[Shannon Pamperl](mailto:shanman190@gmail.com), [Ken Little](mailto:krl49700@gmail.com), [Tim te Beek](mailto:tim@moderne.io), [Sam Snyder](mailto:sam@moderne.io), [Jonathan Schneider](mailto:jkschneider@gmail.com)
2 changes: 1 addition & 1 deletion docs/recipes/gradle/upgradetransitivedependencyversion.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,4 +158,4 @@ _Statistics used in analyzing the performance of recipes._


## Contributors
[Sam Snyder](mailto:sam@moderne.io), [Jonathan Schnéider](mailto:jkschneider@gmail.com), [Jente Sondervorst](mailto:jentesondervorst@gmail.com), [Tim te Beek](mailto:tim@moderne.io), [Niels de Bruin](mailto:nielsdebruin@gmail.com), [Shannon Pamperl](mailto:shanman190@gmail.com)
[Sam Snyder](mailto:sam@moderne.io), [Jonathan Schnéider](mailto:jkschneider@gmail.com), [Jente Sondervorst](mailto:jentesondervorst@gmail.com), [Knut Wannheden](mailto:knut@moderne.io), [Tim te Beek](mailto:tim@moderne.io), [Niels de Bruin](mailto:nielsdebruin@gmail.com), [Shannon Pamperl](mailto:shanman190@gmail.com)
Loading
Loading