Releases: openrewrite/rewrite
Releases · openrewrite/rewrite
8.38.3
What's Changed
- Fixed negation of nested files and directories if excluded by another rule by @Jenson3210 in #4631
- Fix
Substitutions
for generic type variables by @knutwannheden in #4633 JavaParser
withclasspathFromResources
fails on Java 21 by @timtebeek in #4620- Optimize
AdaptiveRadixTree
by @knutwannheden in #4640 - Allow multiple search results to stack up on the same element.
Full Changelog: v8.38.2...v8.38.3
8.38.2
What's Changed
This particular change was pretty critical in some situations, causing this release.
Other changes that are also going out in this release
- Allowing for trailing dollars and percent signs in String literals by @mccartney in #4625
- Comments cannot be parsed properly by @Laurens-W in #4624
- Prevent NPE on older LSTs not yet containing ResolvedPom.subprojects by @timtebeek in #4630
Full Changelog: v8.38.1...v8.38.2
8.38.1
What's Changed
- Remove problematic
String#substring()
call by @knutwannheden in #4606 - Apply add dependency correctly, taking aggregating poms into account by @Laurens-W in #4590
- Fix parsing of HCL comments using // by @timtebeek in #4616
- UpgradeParentVersion: option to only upgrade external parents by @DidierLoiseau in #4592
- Simplify constant ternary expressions too by @timtebeek in #4617
- Backport DocCommentTree reflection to ReloadableJava17ParserVisitor by @timtebeek in #4618
- Fix failing test and infinity loop in MavenPomDownloader by @marcel-gepardec in #4609
- refactor: add
@Nullable
to methods who may return null by @nielsdebruin in #4622 - Add Recipe that allows for the removal/negation of gitignore rules. by @Jenson3210 in #4610
New Contributors
- @nielsdebruin made their first contribution in #4622
Full Changelog: v8.38.0...v8.38.1
8.38.0
What's Changed
- Fix missing junit-platform-launcher version by @DidierLoiseau in #4588
- Actually use TLS in (some) Maven tests and shove a few minutes from their execution by @DidierLoiseau in #4591
- ChangePropertyValue in list yaml entries by @Jenson3210 in #4594
- Make ParentPomInsight recursive by @DidierLoiseau in #4529
- fix valid options in RemoveRedundantDependencyVersions.java by @zieka in #4597
- Implement radix tree based
JavaTypeCache
by @knutwannheden in #4552 - Add used enums into the list of used variable names by @lkerford in #4600
- Fix infinite loop in MavenPomDownloader by @philippe-granet in #4598
New Contributors
- @philippe-granet made their first contribution in #4598
Full Changelog: v8.37.4...v8.38.0
v8.37.4
What's Changed
- AddPlugin now prefers to add plugins to the parent pom if it is in the same repository (#4583) by @Laurens-W and @sambsnyd
- ChangeManagedDependencyGroupIdAndArtifactId now resolves current version (if a property) to fix edge case when changing to latest.patch version by @nmck257 in 9da3321
- Improve test framework presentation of recipe validation errors by @sambsnyd in 23ca65e
- Yaml IndentsVisitor now allows yaml comments to retain multiple newlines in their prefixes. by @sambsnyd in 3bf5b52
Full Changelog: v8.37.3...v8.37.4
8.37.3
What's Changed
- Suppressing vulnerabilities by @pstreef in #4572
- feat: added check for duplicated dependency by @ashakirin in #4515
- Maven: Resolve artifactId properties before downloading versions by @sghill in #4404
- Add
visitModifier()
to baseJavaVisitor
by @macsux in #4562 - Added arrays to AddOrUpdateAnnotationAttribute by @marcel-gepardec in #4446
- Add processing for nested modules with a parent version property by @marcel-gepardec in #4472
- Support parsing the Metadata field in html using the XML parser by @lkerford in #4573
- Revert "Support parsing the Metadata field in html using the XML parser (#4573) by @lkerford in #4575
- Detect whitespace before import semicolon by @timtebeek in #4577
- Link to FAQ on missing types in tests by @timtebeek in #4580
New Contributors
Full Changelog: v8.37.2...v8.37.3
8.37.2
What's Changed
- Handle case-insensitive document declaration in the XML parser by @lkerford in #4567
- Cleanup temp remote artifact by @natedanner in #4568
- Shade and package relocate checkstyle to simplify loading its configuration classes by @sambsnyd in 9df8e66
Full Changelog: v8.37.1...v8.37.2
8.37.1
8.37.0
What's Changed
- chore: update suppression dates by @zieka in #4522
- Adding gradle wrapper through distribution is now possible by @Jenson3210 in #4491
- Fix a very minor typo in RemoveManagedDependency doc by @gsmet in #4525
- Drop AllArgsConstructor from RawPom$Build by @timtebeek in #4535
- Add displayName to UpdateGradleWrapper recipe by @pstreef in #4539
FindComments
should also match against the literal's source by @knutwannheden in #4541FindComments
should also match against Javadoc by @knutwannheden in #4542- Print markers outside javadoc by @pstreef in #4543
- Skip UTF-8 BOM mark in
EncodingDetectingInputStream
and default to UTF-8 inRewriteTest
by @knutwannheden in #4546 - Allow parsing nested Groovy annotations by @knutwannheden in #4549
- Nullability cleanups in
TreeVisitor
by @knutwannheden in #4547 - Add
@JsonProperty
toJavaType#getManagedReference()
by @knutwannheden in #4545 - Expose AddOrUpdateChild as a recipe using XPath + child XML by @DidierLoiseau in #4533
- Fix all XPathMatcherTest TODO's + handle nested elements with the same name by @DidierLoiseau in #4532
- Make Plugin.getGroupId() NonNull by @rob-valor in #4530
- Remove maven properties should remove comment by @jonesbusy in #4554
- Use reflection to invoke getCommentTree to support Java 21 & 23 by @timtebeek in #4555
- Allow RecipeSerializer to (de)serialize java.time.Duration for estimatedEffortPerOccurrence field by @ZzAve in #4556
- Add recipe to remove mutable static fields from Recipes by @timtebeek in #4557
- adding gradle and groovy auto detection by @lkerford in #4561
New Contributors
- @zieka made their first contribution in #4522
- @rob-valor made their first contribution in #4530
- @ZzAve made their first contribution in #4556
Full Changelog: v8.36.0...v8.37.0
8.36.0
What's Changed
- Drop
OperatorWrap
as there's a copy maintained in rewrite-static-analysis by @timtebeek in #4509 - refactor: Operator wrapping on end of line by @timtebeek in #4510
- Use
maven-metadata-local.xml
forfile://
paths by @timtebeek in #4512 - Parse
MavenMetadata.Versioning.lastUpdated
asZonedDateTime
by @timtebeek in #4511 - Accommodate Java 23 in ReloadableJava21ParserVisitor by @timtebeek in #4516
- refactor: Update Gradle wrapper by @shanman190 in #4519
- Only bump Maven plugin version property when needed by @timtebeek in #4517
- Parse .NET .vbproj and .fsproj files as XML by @bryceatmoderne in #4518
- Use
OPTIONS
request before falling back toHEAD
request when trying to connect to repositories during normalization. by @pstreef in #4506
Full Changelog: v8.35.4...v8.36.0