Skip to content

Releases: openrewrite/rewrite

5.3.0

19 Sep 18:27
Compare
Choose a tag to compare

Enhancements

  • Produce CycloneDX BOM's from Maven ASTs (incubating).

Fixes

  • Fix non-determinism in JavaType.Class.build when only a fully qualified name is specified.
  • Made SpansMultipleLines public.
  • Fix reference to scope variables when building static init blocks in TreeBuilder.

5.2.0

18 Sep 00:22
edd3015
Compare
Choose a tag to compare
  • Visitors can now generate new source files
  • SpansMultipleLines moved into this module, formerly contained in rewrite-checkstyle
  • New InsertDeclaration building block visitor simplifies adding method/field/inner class declarations

5.1.0

07 Sep 04:00
Compare
Choose a tag to compare

Core

  • Add nextCycle lifecycle method to visitors.
  • Consolidated and corrected classpath scanning of visitors and resources in Environment. Loaded visitors now delegate class loading to the class loader of the Java class building the environment.

Java

  • Consistent use of Scoped for non-declarative visitors.
  • Renamed UpgradeVersion to UpgradeDependencyVersion.
  • Fix Google Java Format style definition.

Maven

  • Don't eagerly resolve new dependency versions in Maven Parser.
  • Add getNewVersions() to ModuleVersionId to resolve new versions at the last minute.
  • Add localRepository and workspaceDir to UpgradeDependencyVersion and UpgradeParentVersion for use when resolving new versions.

5.0.0

30 Aug 06:48
Compare
Choose a tag to compare

Enhancements

  • Add Maven.Pom#withModel.
  • Don't resolve runtime scope dependencies in Maven parser.
  • RefactorPlan renamed to Environment. Environment now supports property substitution.
  • Styles separated from Recipe.
  • Support version updating on modules with pre-release and metadata (maven).
  • Lower logging level for dependency resolution problems (maven).
  • UpgradeVersion (maven) now supports updating properties in parents.
  • Initial implementation of GenerateGetter and GenerateSetter (incubating).
  • Added getter for include/exclude in Recipe.

Fixes

  • Fix delegation of validation in CompositeRefactorVisitor.
  • Correct tag telemetry in Refactor.

Polish

  • Moved ChangeLiteral implementation into a Scope inner class because it cannot be used declaratively.
  • Downgraded ValidationException if recipe name not unique to a warning.

4.2.1

27 Aug 04:37
Compare
Choose a tag to compare

Enhancements

  • Don't resolve runtime scope dependencies in Maven parser

v4.2.0

26 Aug 00:18
Compare
Choose a tag to compare

Add new building-block recipes for generating getter and setter methods for fields

4.1.2

22 Aug 17:34
Compare
Choose a tag to compare

Add system properties to DefaultModelBuilderRequest so that BOMs that rely on system properties (e.g. profiles based on java.version) can be parsed.

4.1.1

22 Aug 05:56
Compare
Choose a tag to compare

Correct two Java parser tests that will allow rewrite-java-8 build to pass.

4.1.0

22 Aug 02:53
Compare
Choose a tag to compare
  • Maven parser now uses a "workspace resolver" that uses a mapdb cache so we don't re-resolve the same version range requests over and over again against remote repos when we're batch processing lots of poms.
  • Maven parser replaces http:// with https:// on pom-defined repositories.
  • Maven parser now always uses the remote repository defined to the parser and avoiding maven's implicit inclusion a maven central remote repository.
  • MavenModel now has new transitive dependencies field.

4.0.1

18 Aug 02:35
Compare
Choose a tag to compare

Change types from openrewrite.org/v1beta to specs.openrewrite.org/v1beta