Skip to content

Commit 20b9f1b

Browse files
authored
OpenRewrite v8.57.0 (#400)
* OpenRewrite v8.57.0 * Fix broken links
1 parent c3b8811 commit 20b9f1b

File tree

277 files changed

+10942
-4150
lines changed

Some content is hidden

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

277 files changed

+10942
-4150
lines changed

.github/workflows/update-docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
type: boolean
99
description: Only update the latest versions of every OpenRewrite module
1010
default: true
11-
# schedule:
12-
# - cron: 0 0 * * *
11+
schedule:
12+
- cron: 0 0 * * *
1313

1414
concurrency:
1515
group: "update-docs"

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

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
description: What's changed in OpenRewrite version 8.57.0.
3+
---
4+
5+
# 8.57.0 release (2025-07-10)
6+
7+
_Total recipe count: 3921_
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+
* [com.oracle.weblogic.rewrite.ChangeJakartaWebServiceRSAPIDependencyScope](https://docs.openrewrite.org/recipes/com/oracle/weblogic/rewrite/changejakartawebservicersapidependencyscope): This recipe will change the jakarta.ws.rs-api dependency scope to provided when jakarta.jakartaee-api version 9.x is provided in WebLogic 15.1.1. This prevents the jakarta.ws.rs-api jar from being deployed to WebLogic which can cause class conflicts.
16+
* [io.moderne.cryptography.FindInsecureSecuritySetProperties](https://docs.openrewrite.org/recipes/cryptography/findinsecuresecuritysetproperties): Locate calls to `Security.setProperty` that set insecure properties.
17+
* [io.moderne.java.spring.boot.IsLikelyNotSpringBoot](https://docs.openrewrite.org/recipes/java/spring/boot/islikelynotspringboot): Marks the project if it's likely not a Spring Boot project.
18+
* [io.moderne.java.spring.boot.IsLikelySpringBoot](https://docs.openrewrite.org/recipes/java/spring/boot/islikelyspringboot): Marks the project if it's likely a Spring Boot project.
19+
* [io.moderne.java.spring.boot.MigrateSpringFrameworkDependenciesToSpringBoot](https://docs.openrewrite.org/recipes/java/spring/boot/migratespringframeworkdependenciestospringboot): Migrate Spring Framework Dependencies to Spring Boot.
20+
* [io.moderne.java.spring.boot.SpringToSpringBoot](https://docs.openrewrite.org/recipes/java/spring/boot/springtospringboot): Migrate non Spring Boot applications to the latest compatible Spring Boot release. This recipe will modify an application's build files introducing Maven dependency management for Spring Boot, or adding the Gradle Spring Boot build plugin.
21+
* [io.moderne.java.spring.framework.IsLikelySpringFramework](https://docs.openrewrite.org/recipes/java/spring/framework/islikelyspringframework): Marks the project if it's likely a Spring Framework project.
22+
* [io.moderne.java.spring.framework.webxml.DeleteEmptyWebXml](https://docs.openrewrite.org/recipes/java/spring/framework/webxml/deleteemptywebxml): Deletes `web.xml` files that contain only an empty `<web-app>` root element with no child elements.
23+
* [io.moderne.java.spring.framework.webxml.WebXmlToWebApplicationInitializer](https://docs.openrewrite.org/recipes/java/spring/framework/webxml/webxmltowebapplicationinitializer): Migrate `web.xml` to `WebApplicationInitializer` for Spring applications. This allows for programmatic configuration of the web application context, replacing the need for XML-based configuration. This recipe only picks up `web.xml` files located in the `src/main/webapp/WEB-INF` directory to avoid inference with tests.
24+
* [org.openrewrite.github.ReplaceOssrhSecretsWithSonatype](https://docs.openrewrite.org/recipes/github/replaceossrhsecretswithsonatype): Replace deprecated OSSRH_S01 secrets with new Sonatype secrets in GitHub Actions workflows. This is an example use of the `ReplaceSecrets` and `ReplaceSecretKeys` recipes combined used to update the Maven publishing secrets in OpenRewrite's GitHub organization.
25+
* [org.openrewrite.github.ReplaceSecretKeys](https://docs.openrewrite.org/recipes/github/replacesecretkeys): Replace key names used for secrets in GitHub Actions workflow files.
26+
* [org.openrewrite.github.ReplaceSecrets](https://docs.openrewrite.org/recipes/github/replacesecrets): Replace references to GitHub Action secrets in workflow files.
27+
* [org.openrewrite.gradle.GradleBestPractices](https://docs.openrewrite.org/recipes/gradle/gradlebestpractices): Apply a set of [Gradle best practices](https://docs.gradle.org/current/userguide/best_practices_general.html) to the build files, for more efficient and ideomatic builds.
28+
* [org.openrewrite.java.flyway.AddFlywayModuleSqlServer](https://docs.openrewrite.org/recipes/java/flyway/addflywaymodulesqlserver): Database modules for Flyway 10 have been split out into separate modules for maintainability. Add the `flyway-sqlserver` dependency if you are using SQL Server with Flyway 10, as detailed on https://github.com/flyway/flyway/issues/3780.
29+
* [org.openrewrite.java.jackson.UpgradeJackson_2_3](https://docs.openrewrite.org/recipes/java/jackson/upgradejackson_2_3): Migrate applications to the latest Jackson 3.x release.
30+
* [org.openrewrite.java.jackson.UpgradeJackson_2_And_3_Base_Exceptions](https://docs.openrewrite.org/recipes/java/jackson/upgradejackson_2_and_3_base_exceptions): Jackson 3 contains new base exceptions which were also backported to 2.x. This recipe will migrate usage to the new base exceptions to prepare for a 3.x upgrade.
31+
* [org.openrewrite.java.migrate.BouncyCastleFromJdk15OnToJdk15to18](https://docs.openrewrite.org/recipes/java/migrate/bouncycastlefromjdk15ontojdk15to18): This recipe replaces the Bouncy Castle artifacts from `jdk15on` to `jdk15to18`. `jdk15on` isn't maintained anymore and `jdk18on` is only for Java 8 and above. The `jdk15to18` artifact is the up-to-date replacement of the unmaintained `jdk15on` for Java < 8.
32+
* [org.openrewrite.java.migrate.jakarta.HasNoJakartaAnnotations](https://docs.openrewrite.org/recipes/java/migrate/jakarta/hasnojakartaannotations): Mark all source as found per `JavaProject` where no Jakarta annotations are found. This is useful mostly as a precondition for recipes that require Jakarta annotations to be present
33+
* [org.openrewrite.java.migrate.lombok.LombokOnXToOnX_](https://docs.openrewrite.org/recipes/java/migrate/lombok/lombokonxtoonx_): Migrates Lombok's `onX` annotations from the Java 7 style using `@__` to the Java 8+ style using `onX_`. For example, `@Getter(onMethod=@__({@Id}))` becomes `@Getter(onMethod_={@Id})`.
34+
* [org.openrewrite.java.spring.data.MigrateQueryToNativeQuery](https://docs.openrewrite.org/recipes/java/spring/data/migratequerytonativequery): Replace `@Query` annotation by `@NativeQuery` when `nativeQuery = true`. `@NativeQuery` was introduced in Spring Data JPA 3.4.
35+
* [org.openrewrite.java.spring.data.UpgradeSpringData_3_4](https://docs.openrewrite.org/recipes/java/spring/data/upgradespringdata_3_4): Migrate applications to the latest Spring Data 3.4 release.
36+
* [org.openrewrite.jenkins.CreateJenkinsfile](https://docs.openrewrite.org/recipes/jenkins/createjenkinsfile): Creates a simple base Jenkinsfile in Groovy for a Declarative Pipeline - located in the root of the project.
37+
* [org.openrewrite.jenkins.JenkinsfileAsGroovy](https://docs.openrewrite.org/recipes/jenkins/jenkinsfileasgroovy): Parse any `Jenkinsfile` as Groovy code.
38+
* [org.openrewrite.quarkus.Slf4jToQuarkusLogger](https://docs.openrewrite.org/recipes/quarkus/slf4jtoquarkuslogger): Removes usage of SLF4J Logger fields, adjusts imports, and replaces logger method calls with static Quarkus Log calls, including message formatting and method renaming for parameterized logging.
39+
* [org.openrewrite.spring.webxml.MigrateToJakartaEEServletConfiguration](https://docs.openrewrite.org/recipes/spring/webxml/migratetojakartaeeservletconfiguration): Migrates `web.xml` content to Spring Boot Configuration classes using Jakarta EE namespace.
40+
* [org.openrewrite.spring.webxml.MigrateToJavaXServletConfiguration](https://docs.openrewrite.org/recipes/spring/webxml/migratetojavaxservletconfiguration): Migrates `web.xml` content to Spring Boot Configuration classes using Java EE javax namespace.
41+
* [org.openrewrite.spring.webxml.RemoveWebXml](https://docs.openrewrite.org/recipes/spring/webxml/removewebxml): Migrates `web.xml` content to Spring Boot Configuration classes with respect to Java EE or Jakarta EE usage.
42+
* [org.openrewrite.staticanalysis.RemoveRedundantNullCheckBeforeInstanceof](https://docs.openrewrite.org/recipes/staticanalysis/removeredundantnullcheckbeforeinstanceof): Removes redundant null checks before instanceof operations since instanceof returns false for null.
43+
* [org.openrewrite.staticanalysis.SimplifyArraysAsList](https://docs.openrewrite.org/recipes/staticanalysis/simplifyarraysaslist): Simplifies `Arrays.asList()` method calls that use explicit array creation to use varargs instead. For example, `Arrays.asList(new String[]{"a", "b", "c"})` becomes `Arrays.asList("a", "b", "c")`.
44+

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 Version 2.0](https://www.apac
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.23.0`
33+
* newValue: `1.24.0`
3434
* addIfMissing: `false`
3535
* trustParent: `true`
3636
* [Change Maven project property value](../../../../maven/changepropertyvalue)
3737
* key: `version.timefold`
38-
* newValue: `1.23.0`
38+
* newValue: `1.24.0`
3939
* addIfMissing: `false`
4040
* trustParent: `true`
4141
* [Change Maven project property value](../../../../maven/changepropertyvalue)
4242
* key: `ai.timefold.solver.version`
43-
* newValue: `1.23.0`
43+
* newValue: `1.24.0`
4444
* addIfMissing: `false`
4545
* trustParent: `true`
4646
* [Change Maven project property value](../../../../maven/changepropertyvalue)
4747
* key: `timefold.version`
48-
* newValue: `1.23.0`
48+
* newValue: `1.24.0`
4949
* addIfMissing: `false`
5050
* trustParent: `true`
5151
* [Change Maven project property value](../../../../maven/changepropertyvalue)
5252
* key: `timefoldVersion`
53-
* newValue: `1.23.0`
53+
* newValue: `1.24.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.23.0
71+
newValue: 1.24.0
7272
addIfMissing: false
7373
trustParent: true
7474
- org.openrewrite.maven.ChangePropertyValue:
7575
key: version.timefold
76-
newValue: 1.23.0
76+
newValue: 1.24.0
7777
addIfMissing: false
7878
trustParent: true
7979
- org.openrewrite.maven.ChangePropertyValue:
8080
key: ai.timefold.solver.version
81-
newValue: 1.23.0
81+
newValue: 1.24.0
8282
addIfMissing: false
8383
trustParent: true
8484
- org.openrewrite.maven.ChangePropertyValue:
8585
key: timefold.version
86-
newValue: 1.23.0
86+
newValue: 1.24.0
8787
addIfMissing: false
8888
trustParent: true
8989
- org.openrewrite.maven.ChangePropertyValue:
9090
key: timefoldVersion
91-
newValue: 1.23.0
91+
newValue: 1.24.0
9292
addIfMissing: false
9393
trustParent: true
9494

docs/recipes/analysis/controlflow/controlflowvisualization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,4 +230,4 @@ _Statistics used in analyzing the performance of recipes._
230230
</Tabs>
231231

232232
## Contributors
233-
[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)
233+
[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:timtebeek@gmail.com)

docs/recipes/apache/commons/io/apacheioutilsuseexplicitcharset.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,4 +223,4 @@ _Statistics used in analyzing the performance of recipes._
223223
</Tabs>
224224

225225
## Contributors
226-
Patrick Way, [Knut Wannheden](mailto:knut@moderne.io), Tyler Van Gorder, [Jonathan Schnéider](mailto:jkschneider@gmail.com), [Sam Snyder](mailto:sam@moderne.io), [Tim te Beek](mailto:tim@moderne.io)
226+
Patrick Way, [Knut Wannheden](mailto:knut@moderne.io), Tyler Van Gorder, [Jonathan Schnéider](mailto:jkschneider@gmail.com), [Sam Snyder](mailto:sam@moderne.io), [Tim te Beek](mailto:timtebeek@gmail.com)

docs/recipes/apache/httpclient5/migrateauthscope.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,4 +212,4 @@ _Statistics used in analyzing the performance of recipes._
212212
</Tabs>
213213

214214
## Contributors
215-
Adriano Machado, [Jonathan Schnéider](mailto:jkschneider@gmail.com)
215+
Adriano Machado, [Jonathan Schnéider](mailto:jkschneider@gmail.com), [Tim te Beek](mailto:timtebeek@gmail.com)

docs/recipes/apache/httpclient5/newrequestline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,4 +212,4 @@ _Statistics used in analyzing the performance of recipes._
212212
</Tabs>
213213

214214
## Contributors
215-
[steve-aom-elliott](mailto:steve@moderne.io)
215+
[steve-aom-elliott](mailto:steve@moderne.io), [Tim te Beek](mailto:timtebeek@gmail.com)

docs/recipes/apache/httpclient5/newstatusline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,4 +212,4 @@ _Statistics used in analyzing the performance of recipes._
212212
</Tabs>
213213

214214
## Contributors
215-
[Joan Viladrosa](mailto:joan@moderne.io), [steve-aom-elliott](mailto:steve@moderne.io), Adriano Machado, [Tim te Beek](mailto:tim@moderne.io), [Jonathan Schnéider](mailto:jkschneider@gmail.com)
215+
[Joan Viladrosa](mailto:joan@moderne.io), [steve-aom-elliott](mailto:steve@moderne.io), [Tim te Beek](mailto:timtebeek@gmail.com), Adriano Machado, [Jonathan Schnéider](mailto:jkschneider@gmail.com)

docs/recipes/apache/httpclient5/statusline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,4 +260,4 @@ _Statistics used in analyzing the performance of recipes._
260260
</Tabs>
261261

262262
## Contributors
263-
[steve-aom-elliott](mailto:steve@moderne.io), [Joan Viladrosa](mailto:joan@moderne.io), Adriano Machado, [Tim te Beek](mailto:tim@moderne.io), [Jonathan Schnéider](mailto:jkschneider@gmail.com)
263+
[steve-aom-elliott](mailto:steve@moderne.io), [Joan Viladrosa](mailto:joan@moderne.io), [Tim te Beek](mailto:timtebeek@gmail.com), Adriano Machado, [Jonathan Schnéider](mailto:jkschneider@gmail.com)

docs/recipes/apache/httpclient5/upgradeapachehttpclient_5.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ This recipe is available under the [Moderne Source Available License](https://do
6666
* [Adds `TimeUnit` to timeouts and duration methods](../../apache/httpclient5/upgradeapachehttpclient_5_timeunit)
6767
* [Migrate to ApacheHttpClient 5.x deprecated methods from 4.x](../../apache/httpclient5/statusline)
6868
* [Replaces `AuthScope.ANY`](../../apache/httpclient5/migrateauthscope)
69+
* [Delete method argument](../../java/deletemethodargument)
70+
* methodPattern: `org.apache.hc.client5.http.impl.auth.BasicSchemeFactory <constructor>(java.nio.charset.Charset)`
71+
* argumentIndex: `0`
72+
* [Delete method argument](../../java/deletemethodargument)
73+
* methodPattern: `org.apache.hc.client5.http.impl.auth.DigestSchemeFactory <constructor>(java.nio.charset.Charset)`
74+
* argumentIndex: `0`
6975

7076
</TabItem>
7177

@@ -115,6 +121,12 @@ recipeList:
115121
- org.openrewrite.apache.httpclient5.UpgradeApacheHttpClient_5_TimeUnit
116122
- org.openrewrite.apache.httpclient5.StatusLine
117123
- org.openrewrite.apache.httpclient5.MigrateAuthScope
124+
- org.openrewrite.java.DeleteMethodArgument:
125+
methodPattern: org.apache.hc.client5.http.impl.auth.BasicSchemeFactory <constructor>(java.nio.charset.Charset)
126+
argumentIndex: 0
127+
- org.openrewrite.java.DeleteMethodArgument:
128+
methodPattern: org.apache.hc.client5.http.impl.auth.DigestSchemeFactory <constructor>(java.nio.charset.Charset)
129+
argumentIndex: 0
118130

119131
```
120132
</TabItem>
@@ -1021,4 +1033,4 @@ _Statistics used in analyzing the performance of recipes._
10211033
</Tabs>
10221034

10231035
## Contributors
1024-
[Joan Viladrosa](mailto:joan@moderne.io), [steve-aom-elliott](mailto:steve@moderne.io), SiBorea, Adriano Machado, [Jonathan Schnéider](mailto:jkschneider@gmail.com), [Tim te Beek](mailto:tim@moderne.io), [Tim te Beek](mailto:timtebeek@gmail.com), [Jonathan Leitschuh](mailto:jonathan.leitschuh@gmail.com), [Laurens Westerlaken](mailto:laurens.westerlaken@moderne.io), [Merlin Bögershausen](mailto:merlin.boegershausen@rwth-aachen.de)
1036+
[Joan Viladrosa](mailto:joan@moderne.io), [steve-aom-elliott](mailto:steve@moderne.io), SiBorea, Adriano Machado, [Jonathan Schnéider](mailto:jkschneider@gmail.com), [Tim te Beek](mailto:timtebeek@gmail.com), [Jonathan Leitschuh](mailto:jonathan.leitschuh@gmail.com), [Tim te Beek](mailto:tim@moderne.io), [Laurens Westerlaken](mailto:laurens.westerlaken@moderne.io), [Merlin Bögershausen](mailto:merlin.boegershausen@rwth-aachen.de)

0 commit comments

Comments
 (0)