Skip to content

Releases: openrewrite/rewrite

6.1.0

29 Nov 18:12
Compare
Choose a tag to compare

Improvements

  • TreeBuilder build snippet usability improvements
  • ManageDependencies visitor for Maven (reinstate AddOrRemoveDependencyManagement removed in 6.0.x with the new model)
  • AddPlugin visitor for Maven
  • AddDependency should optionally use managed dependency version when available
  • AddToTag (XML refactoring) takes optional Comparator<Xml.Tag> to place new tags in an idiomatic order
  • Finalize parsing of license types in Pom.License.fromName(..)
  • Create maybeAddDependency shortcut to MavenRefactorVisitor
  • RemoveDependency visitor for Maven
  • ExcludeDependency visitor for Maven
  • AutoFormat implementation for XML

6.0.1

24 Nov 18:06
Compare
Choose a tag to compare

Revert change to SourceFile#getSourcePath which must be a String.

6.0.0

24 Nov 02:15
Compare
Choose a tag to compare

The major feature of this release is a total rewrite of the Maven POM parsing & refactoring.
The new implementation no longer relies on aether. It was created from the ground up to produce exactly the same dependency resolution results that Maven itself does, but much faster and without relying on a known-unsafe for parallelism local cache.

5.5.4

19 Nov 21:31
3913ffb
Compare
Choose a tag to compare
  • Fix AddImport to handle static method imports better (#73)
  • Fix OrderImports removing some static imports, fixed ChangeType not updating the type of changed J.MethodInvocations (#72)
  • AutoFormat better handles type parameters (#74)

5.5.3

13 Nov 22:06
a3e70f5
Compare
Choose a tag to compare
  • Fixes #68 RemoveUnusedImports removes imports of static methods invoked from the argument lists of other method invocations
  • Fixes #70 Single line comments before modifiers cause modifiers to be skipped by the parser
  • Enhances #43 SemanticallyEquals usage in AddAnnotations

5.5.2

02 Nov 23:25
Compare
Choose a tag to compare
  • Now compatible with the recently-released JDK 11.0.9
  • Improved SemanticallyEquals ability to determine equality of annotations
  • Thanks to @BoykoAlex for fixing an issue with J.CompilationUnit.getSourceSet()

5.5.1

30 Oct 19:18
Compare
Choose a tag to compare

Rename ParserInputFileObject to avoid classpath name conflict with the rewrite-java-8 version of that class

5.5.0

24 Oct 00:27
Compare
Choose a tag to compare
  • Improve AutoFormat's ability to correctly place annotations and comments
  • Thanks to @fabapp2 for contributing AddOrUpdateDependencyManagement, a maven visitor allowing for the creation and modification of dependencyManagement blocks inside of maven poms
  • rewrite-test's loadRefactorPlan() helper function has been replaced by the similar but distinct loadVisitorsForTest()

5.4.4

12 Oct 01:20
Compare
Choose a tag to compare

Fix bug with only the last is a series of visitors getting applied to the source file

5.4.3

06 Oct 23:02
Compare
Choose a tag to compare

Fixes an issue with manipulating Maven pom dependencyManagement blocks