Skip to content

Commit 07b8ee1

Browse files
authored
OpenRewrite v8.48.0 (#365)
* OpenRewrite v8.48.0 * OpenRewrite v8.48.0 * New Recipes & changelog * Fix testngtoassertjrulesrecipes.md * Shorten 8-48-0-Release.md
1 parent 2661a96 commit 07b8ee1

File tree

118 files changed

+3738
-1251
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+3738
-1251
lines changed

docs/changelog/8-48-0-Release.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
description: What's changed in OpenRewrite version 8.48.0.
3+
---
4+
5+
# 8.48.0 release (2025-03-11)
6+
7+
_Total recipe count: 3092_
8+
9+
:::info
10+
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).
11+
:::
12+
13+
## New Recipes
14+
15+
* [io.moderne.moddy.ImproveRecipeDescriptors](https://docs.openrewrite.org/recipes/moddy/improverecipedescriptors): Improving recipe display names and descriptions in turn improves Moddy.
16+
* [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`.
17+
* [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`.
18+
* [io.quarkus.updates.core.quarkus319.ConfigurationPropertiesChange](https://docs.openrewrite.org/recipes/io/quarkus/updates/core/quarkus319/configurationpropertieschange):
19+
* [io.quarkus.updates.core.quarkus319.MoveAccessTokenAnnotationToNewPackage](https://docs.openrewrite.org/recipes/io/quarkus/updates/core/quarkus319/moveaccesstokenannotationtonewpackage):
20+
* [org.openrewrite.codemods.Biome](https://docs.openrewrite.org/recipes/codemods/biome): Run [Biome](https://biomejs.dev/) recommended settings on your projects.
21+
* [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()`.
22+
* [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()`.
23+
* [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
24+
* [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.
25+
* [software.amazon.awssdk.v2migration.ByteBufferToSdkBytes](https://docs.openrewrite.org/recipes/software/amazon/awssdk/v2migration/bytebuffertosdkbytes): Convert ByteBuffer to SdkBytes by calling SdkBytes#fromByteBuffer
26+
* [software.amazon.awssdk.v2migration.ChangeTransferManagerTypes](https://docs.openrewrite.org/recipes/software/amazon/awssdk/v2migration/changetransfermanagertypes): Change SDK TransferManager types from v1 to v2.
27+
* [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.
28+
* [software.amazon.awssdk.v2migration.TransferManagerMethodsToV2](https://docs.openrewrite.org/recipes/software/amazon/awssdk/v2migration/transfermanagermethodstov2): Transfer Manager Methods to V2
29+
30+
## Removed Recipes
31+
32+
* **org.openrewrite.java.migrate.net.URLConstructorsToURIRecipes**: Refaster template recipes for `org.openrewrite.java.migrate.net.URLConstructorsToURI`.
33+
* **org.openrewrite.java.migrate.net.URLConstructorsToURIRecipes$URLFourArgumentConstructorRecipe**: Converts `new URL(String, String, int, String)` constructors to `new URI(...).toURL()`.
34+
* **org.openrewrite.java.migrate.net.URLConstructorsToURIRecipes$URLSingleArgumentConstructorRecipe**: Converts `new URL(String)` constructors to `URI.create(String).toURL()`.
35+
* **org.openrewrite.java.migrate.net.URLConstructorsToURIRecipes$URLThreeArgumentConstructorRecipe**: Converts `new URL(String, String, String)` constructors to `new URI(...).toURL()`.
36+
37+
## Changed Recipes
38+
39+
* [org.openrewrite.yaml.MergeYaml](https://docs.openrewrite.org/recipes/yaml/mergeyaml) was changed:
40+
* Old Options:
41+
* `acceptTheirs: { type: Boolean, required: false }`
42+
* `filePattern: { type: String, required: false }`
43+
* `insertMode: { type: InsertMode, required: false }`
44+
* `insertProperty: { type: String, required: false }`
45+
* `key: { type: String, required: true }`
46+
* `objectIdentifyingProperty: { type: String, required: false }`
47+
* `yaml: { type: String, required: true }`
48+
* New Options:
49+
* `acceptTheirs: { type: Boolean, required: false }`
50+
* `createNewKeys: { type: Boolean, required: false }`
51+
* `filePattern: { type: String, required: false }`
52+
* `insertMode: { type: InsertMode, required: false }`
53+
* `insertProperty: { type: String, required: false }`
54+
* `key: { type: String, required: true }`
55+
* `objectIdentifyingProperty: { type: String, required: false }`
56+
* `yaml: { type: String, required: true }`

docs/recipes/ai/timefold/solver/migration/changeversion.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,27 +30,27 @@ This recipe is available under the [Apache License 2.0](https://www.apache.org/l
3030
<TabItem value="recipe-list" label="Recipe List" >
3131
* [Change Maven project property value](../../../../maven/changepropertyvalue)
3232
* key: `version.ai.timefold.solver`
33-
* newValue: `1.19.0`
33+
* newValue: `1.20.0`
3434
* addIfMissing: `false`
3535
* trustParent: `true`
3636
* [Change Maven project property value](../../../../maven/changepropertyvalue)
3737
* key: `version.timefold`
38-
* newValue: `1.19.0`
38+
* newValue: `1.20.0`
3939
* addIfMissing: `false`
4040
* trustParent: `true`
4141
* [Change Maven project property value](../../../../maven/changepropertyvalue)
4242
* key: `ai.timefold.solver.version`
43-
* newValue: `1.19.0`
43+
* newValue: `1.20.0`
4444
* addIfMissing: `false`
4545
* trustParent: `true`
4646
* [Change Maven project property value](../../../../maven/changepropertyvalue)
4747
* key: `timefold.version`
48-
* newValue: `1.19.0`
48+
* newValue: `1.20.0`
4949
* addIfMissing: `false`
5050
* trustParent: `true`
5151
* [Change Maven project property value](../../../../maven/changepropertyvalue)
5252
* key: `timefoldVersion`
53-
* newValue: `1.19.0`
53+
* newValue: `1.20.0`
5454
* addIfMissing: `false`
5555
* trustParent: `true`
5656

@@ -68,27 +68,27 @@ description: |
6868
recipeList:
6969
- org.openrewrite.maven.ChangePropertyValue:
7070
key: version.ai.timefold.solver
71-
newValue: 1.19.0
71+
newValue: 1.20.0
7272
addIfMissing: false
7373
trustParent: true
7474
- org.openrewrite.maven.ChangePropertyValue:
7575
key: version.timefold
76-
newValue: 1.19.0
76+
newValue: 1.20.0
7777
addIfMissing: false
7878
trustParent: true
7979
- org.openrewrite.maven.ChangePropertyValue:
8080
key: ai.timefold.solver.version
81-
newValue: 1.19.0
81+
newValue: 1.20.0
8282
addIfMissing: false
8383
trustParent: true
8484
- org.openrewrite.maven.ChangePropertyValue:
8585
key: timefold.version
86-
newValue: 1.19.0
86+
newValue: 1.20.0
8787
addIfMissing: false
8888
trustParent: true
8989
- org.openrewrite.maven.ChangePropertyValue:
9090
key: timefoldVersion
91-
newValue: 1.19.0
91+
newValue: 1.20.0
9292
addIfMissing: false
9393
trustParent: true
9494

docs/recipes/analysis/controlflow/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
## Recipes
44

5-
* [Control Flow Visualization](./controlflowvisualization.md)
5+
* [Control flow visualization](./controlflowvisualization.md)
66

77

docs/recipes/analysis/controlflow/controlflowvisualization.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
sidebar_label: "Control Flow Visualization"
2+
sidebar_label: "Control flow visualization"
33
---
44

55
import Tabs from '@theme/Tabs';
66
import TabItem from '@theme/TabItem';
77

8-
# Control Flow Visualization
8+
# Control flow visualization
99

1010
**org.openrewrite.analysis.controlflow.ControlFlowVisualization**
1111

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

170170

171171
## Contributors
172-
[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)
172+
[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)

docs/recipes/codemods/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ _Recipes that run JavaScript codemods._
1212
## Recipes
1313

1414
* [Applies a codemod to all source files](./applycodemod.md)
15+
* [Biome recommendations](./biome.md)
1516
* [Lint UI5 projects with UI5 linter](./ui5.md)
1617
* [Lint source code with ESLint](./eslint.md)
1718
* [Run Putout](./putout.md)

docs/recipes/java/migrate/net/urlconstructorstourirecipes$urlfourargumentconstructorrecipe.md renamed to docs/recipes/codemods/biome.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
---
2-
sidebar_label: "Convert new URL(String, String, int, String) to new URI(...).toURL()"
2+
sidebar_label: "Biome recommendations"
33
---
44

55
import Tabs from '@theme/Tabs';
66
import TabItem from '@theme/TabItem';
77

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

10-
**org.openrewrite.java.migrate.net.URLConstructorsToURIRecipes$URLFourArgumentConstructorRecipe**
10+
**org.openrewrite.codemods.Biome**
1111

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

1414
## Recipe source
1515

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

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

2323

2424
## Usage
2525

26-
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):
26+
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):
2727
<Tabs groupId="projectType">
2828
<TabItem value="gradle" label="Gradle">
2929

@@ -35,7 +35,7 @@ plugins {
3535
}
3636
3737
rewrite {
38-
activeRecipe("org.openrewrite.java.migrate.net.URLConstructorsToURIRecipes$URLFourArgumentConstructorRecipe")
38+
activeRecipe("org.openrewrite.codemods.Biome")
3939
setExportDatatables(true)
4040
}
4141
@@ -44,7 +44,7 @@ repositories {
4444
}
4545
4646
dependencies {
47-
rewrite("org.openrewrite.recipe:rewrite-migrate-java:{{VERSION_ORG_OPENREWRITE_RECIPE_REWRITE_MIGRATE_JAVA}}")
47+
rewrite("org.openrewrite.recipe:rewrite-codemods:{{VERSION_ORG_OPENREWRITE_RECIPE_REWRITE_CODEMODS}}")
4848
}
4949
```
5050

@@ -65,10 +65,10 @@ initscript {
6565
rootProject {
6666
plugins.apply(org.openrewrite.gradle.RewritePlugin)
6767
dependencies {
68-
rewrite("org.openrewrite.recipe:rewrite-migrate-java:{{VERSION_ORG_OPENREWRITE_RECIPE_REWRITE_MIGRATE_JAVA}}")
68+
rewrite("org.openrewrite.recipe:rewrite-codemods:{{VERSION_ORG_OPENREWRITE_RECIPE_REWRITE_CODEMODS}}")
6969
}
7070
rewrite {
71-
activeRecipe("org.openrewrite.java.migrate.net.URLConstructorsToURIRecipes$URLFourArgumentConstructorRecipe")
71+
activeRecipe("org.openrewrite.codemods.Biome")
7272
setExportDatatables(true)
7373
}
7474
afterEvaluate {
@@ -103,14 +103,14 @@ gradle --init-script init.gradle rewriteRun
103103
<configuration>
104104
<exportDatatables>true</exportDatatables>
105105
<activeRecipes>
106-
<recipe>org.openrewrite.java.migrate.net.URLConstructorsToURIRecipes$URLFourArgumentConstructorRecipe</recipe>
106+
<recipe>org.openrewrite.codemods.Biome</recipe>
107107
</activeRecipes>
108108
</configuration>
109109
<dependencies>
110110
<dependency>
111111
<groupId>org.openrewrite.recipe</groupId>
112-
<artifactId>rewrite-migrate-java</artifactId>
113-
<version>{{VERSION_ORG_OPENREWRITE_RECIPE_REWRITE_MIGRATE_JAVA}}</version>
112+
<artifactId>rewrite-codemods</artifactId>
113+
<version>{{VERSION_ORG_OPENREWRITE_RECIPE_REWRITE_CODEMODS}}</version>
114114
</dependency>
115115
</dependencies>
116116
</plugin>
@@ -126,20 +126,20 @@ gradle --init-script init.gradle rewriteRun
126126
You will need to have [Maven](https://maven.apache.org/download.cgi) installed on your machine before you can run the following command.
127127

128128
```shell title="shell"
129-
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
129+
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
130130
```
131131
</TabItem>
132132
<TabItem value="moderne-cli" label="Moderne CLI">
133133

134134
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.
135135

136136
```shell title="shell"
137-
mod run . --recipe URLConstructorsToURIRecipes$URLFourArgumentConstructorRecipe
137+
mod run . --recipe Biome
138138
```
139139

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

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

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

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

docs/recipes/core/listruntimeclasspath.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,4 @@ _Statistics used in analyzing the performance of recipes._
199199

200200

201201
## Contributors
202-
[Sam Snyder](mailto:sam@moderne.io), [Jonathan Schnéider](mailto:jkschneider@gmail.com), [Niels de Bruin](mailto:nielsdebruin@gmail.com)
202+
[Sam Snyder](mailto:sam@moderne.io), [Jonathan Schnéider](mailto:jkschneider@gmail.com)

docs/recipes/gitlab/addcomponent.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ This recipe is available under the [Moderne Source Available License](https://do
3939
* acceptTheirs: `false`
4040
* objectIdentifyingProperty: `component`
4141
* filePattern: `.gitlab-ci.yml`
42+
* createNewKeys: `true`
4243

4344
</TabItem>
4445

@@ -65,6 +66,7 @@ recipeList:
6566
acceptTheirs: false
6667
objectIdentifyingProperty: component
6768
filePattern: .gitlab-ci.yml
69+
createNewKeys: true
6870

6971
```
7072
</TabItem>

docs/recipes/gitlab/addstages.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ This recipe is available under the [Moderne Source Available License](https://do
3737
* yaml: `stages: - `
3838
* objectIdentifyingProperty: `stages`
3939
* filePattern: `.gitlab-ci.yml`
40+
* createNewKeys: `true`
4041

4142
</TabItem>
4243

@@ -59,6 +60,7 @@ recipeList:
5960
-
6061
objectIdentifyingProperty: stages
6162
filePattern: .gitlab-ci.yml
63+
createNewKeys: true
6264

6365
```
6466
</TabItem>

docs/recipes/gitlab/addtemplate.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ This recipe is available under the [Moderne Source Available License](https://do
3737
* acceptTheirs: `false`
3838
* objectIdentifyingProperty: `template`
3939
* filePattern: `.gitlab-ci.yml`
40+
* createNewKeys: `true`
4041

4142
</TabItem>
4243

@@ -58,6 +59,7 @@ recipeList:
5859
acceptTheirs: false
5960
objectIdentifyingProperty: template
6061
filePattern: .gitlab-ci.yml
62+
createNewKeys: true
6163

6264
```
6365
</TabItem>

0 commit comments

Comments
 (0)