Releases: openrewrite/rewrite
Releases · openrewrite/rewrite
8.32.0
What's Changed
EmptyNewlineAtEndOfFile
should retain non-whitespace characters by @timtebeek in #4346- Reword literal trait description by @mike-solomon in #4347
- Fixed ChangeType for stackoverflow by @zacscoding in #3929
- Do not wrap single active recipe & remove
activateAll()
by @timtebeek in #4349 - Fix AddOrUpdateAnnotationAttribute for values of type Class by @froque in #4342
- Fix UpgradeDependencyVersion handling of exactVersion with versionPattern by @gideon-sunbit in #4339
- fix: Dont generate the same file multiple times & fix CreateTextFile by @pstreef in #4356
- fix:
CreateYaml
does not work the same asCreateTextFile
with precondition by @pstreef in #4360 - fix: CreateXml generate with content by @pstreef in #4361
- Add recipe for adding/replacing a Maven runtime config by @bmuschko in #4363
- Add HCL FindAndReplaceLiteral Recipe by @l-ferguson in #4362
New Contributors
- @zacscoding made their first contribution in #3929
- @froque made their first contribution in #4342
- @gideon-sunbit made their first contribution in #4339
- @bmuschko made their first contribution in #4363
- @l-ferguson made their first contribution in #4362
Full Changelog: v8.31.1...v8.32.0
8.31.1
What's Changed
- refactor: OpenRewrite best practices by @timtebeek in #4329
- feat: add shell executor interface for running shell commands during recipe execution by @natedanner in #4326
Recipe#buildRecipeList
to aid AI code assistants to write recipes by @jkschneider in #4331- Give explicit property definitions higher precedence than Maven's implicit ones. by @nguyenhoan in #4334
- Fixed maven multi module property version problem by @marcel-gepardec in #4335
- LatestRelease enhancements by @nmck257 in #4338
- Avoid potential for StackOverflow on J#getWeight by @jkschneider in #4343
New Contributors
- @marcel-gepardec made their first contribution in #4335
Full Changelog: v8.30.0...v8.31.1
8.30.0
What's Changed
- Add XPath support for namespace-uri() condition and attribute elements by @evie-lau in #4287
- RemoveObjectsIsNull fails on negated expressions fixed by @Riyazul555 in #4296
- Switch to a single timeout for MavenSettings and MavenRepositoryMirror by @timtebeek in #4302
- Fix method name collisions with UseStaticImport by @protocol7 in #4307
- Resolved stackoverflow exception for circular dependencies. by @Jenson3210 in #4300
- XPath condition enhancements - multiple conditions and and/or operators by @evie-lau in #4305
- Fix/connection timeout in test by @ErhardSiegl in #4308
- Added Profile dependency migration by @timtebeek in #4311
Trait
interface andVariableAccess
/MethodAccess
implementation by @jkschneider in #4309Annotated
andLiteral
traits by @jkschneider in #4318- refactor: Update Gradle wrapper by @shanman190 in #4322
- feat: Change maven managed dependency classifier by @Ferioney in #4317
- Migrate add Develocity recipes to handle the new develocity configurations by @shanman190 in #4312
- Add Gradle Enterprise to Develocity 3.17+ migration recipe for Gradle by @shanman190 in #4320
- Gradle UpgradeDependencyVersion visitor should override isAcceptable by @timtebeek in #4327
- Add XSLT transformation recipe by @ammachado in #3606
- Drop XSLT options from ChangePluginConfiguration by @timtebeek in #4328
New Contributors
- @evie-lau made their first contribution in #4287
- @Riyazul555 made their first contribution in #4296
- @protocol7 made their first contribution in #4307
- @ErhardSiegl made their first contribution in #4308
- @Ferioney made their first contribution in #4317
Full Changelog: v8.29.0...v8.30.0
8.29.0
What's Changed
- Allow configuration of HTTP timeouts for maven repositories by @ammachado in #3951
- Partial support for parsing XML namespaces by @ammachado in #3925
- Maven runtime dependency is on the compile scope by @BoykoAlex in #4273
- Ignore method invocation arguments that are not string J.Literals by @Jenson3210 in #4276
- fix: fix bellwether decorated recipe ignoring causesAnotherCycle by @aslaad in #4282
- Add column names & descriptions for
MavenMetadataFailures
by @pstreef in #4279 - Add
PlaintextOnly
Option toFindAndReplace
Recipe by @ryan-hudson in #4277 - Improve
UpgradeDependencyVersion
to update dependency version whose value is defined via a property from the parent POM. by @nguyenhoan in #4214 - Preserve multiple dependencyManagement with different types by @askoog in #4290
- Recreate static imports for identifiers in
ChangeType
by @timtebeek in #4291 - fix: Add
DelegatingRecipe
to find underlying recipe for loading options by @pstreef in #4286 - Fix
StackOverflowError
in case of circular import deps by @ZhyliaievD in #4284 MergeYaml
should avoid adding query with no result as key at end of file by @adastraperangusta in #4297- Remove property in maven model by @BoykoAlex in #4298
ChangeType
leads to botched imports for nested fields by @timtebeek in #4292AddParentPom
recipe by @rcsilva83 in #4289- Handle
MavenMetadata
parser result NPE as reported by community member by @timtebeek in #4285
New Contributors
- @aslaad made their first contribution in #4282
- @askoog made their first contribution in #4290
- @ZhyliaievD made their first contribution in #4284
- @adastraperangusta made their first contribution in #4297
- @rcsilva83 made their first contribution in #4289
Full Changelog: v8.28.1...v8.29.0
8.28.1
What's Changed
- Add dedicated
JavaPrinter#printStatementTerminator()
by @knutwannheden in #4271 - feat: If DeclarativeRecipe only has already-initialized recipes, don't require initialization by @kmccarp in #4267
Full Changelog: v8.28.0...v8.28.1
8.28.0
What's Changed
- Import get inserted at correct index with newline space by @Jenson3210 in #4242
- refactor: OpenRewrite best practices by @timtebeek in #4243
- Run a subset of best practices against PRs by @timtebeek in #4232
- Add
AddPluginRepository
recipe by @jdmcmahan in #4247 - Use
@Nls
annotations to hint at sentence-case requirements by @jkschneider in #4253 - Fix
Parameterized
is hidden bywithFullyQualifiedName
by @OlegDokuka in #4245 - Add NlsRewrite hints to Refaster RecipeDescriptor fields by @timtebeek in #4255
- Allow JavaTemplate to throw new Exception by @timtebeek in #4260
- Allow J.Empty type parameters in SemanticallyEqual by @timtebeek in #4266
- Gradle
ChangeDependencyClassifier
supports add and remove classifier by @BoykoAlex in #4268 - Fix the inappropriate application of dependency management sections during dependency resolution by @sambsnyd in 4df7f3a
- Fix JavaParser.dependenciesFromResources to always return resources from the jar even when there are already matching entries in ~/.rewrite/classpath by @sambsnyd in 2d22596
New Contributors
- @jdmcmahan made their first contribution in #4247
- @OlegDokuka made their first contribution in #4245
Full Changelog: v8.27.4...v8.28.0
8.27.4
What's Changed
- Do not add constraints inside version J.MethodInvocations part of the constraint itself. by @Jenson3210 in #4229
- refactor: OpenRewrite best practices by @timtebeek in #4231
- Only consider specified configurations for UpgradeTransitiveDependencies created constraints by @Jenson3210 in #4233
- Add Property Resolution to RemoveRedundantDependencyVersions by @ryan-hudson in #4236
Full Changelog: v8.27.3...v8.27.4
8.27.3
What's Changed
- Do not throw if
ReplaceStringLiteralWithConstant
value not found by @timtebeek in #4224 - fix: Recognize bundle POM packaging type as jars when verifying recipe dependency downloads by @bryceatmoderne in #4219
- Added classifier support to DependencyUseStringNotation recipe by @Jenson3210 in #4226
- Strengthen override method determination for generic parameters by @jkschneider in #4227
Full Changelog: v8.27.2...v8.27.3
v8.27.2
What's Changed
- Parse troublesome Yaml with new workaround in workaround for underying parser bug by @timtebeek in #4208
- Add recipe to replace Annotation by @MBoegers in #4217
- refactor: Update Gradle wrapper by @shanman190 in #4221
Full Changelog: v8.27.1...v8.27.2
8.27.1
What's Changed
- Add HasBuildToolVersion by @timtebeek in #4206
- bug: yaml: DeleteProperty: do not remove unrelated empty sequences by @aleksandrserbin in #4205
- Allow for simple re-usable
AddPropertyVisitor
by @BoykoAlex in #4207
New Contributors
- @aleksandrserbin made their first contribution in #4205
Full Changelog: v8.27.0...v8.27.1