Introduce automated code changes with OpenRewrite (BUILD-1004)

[BUILD-1008] Create a repository for recipes Created: 06/Feb/23  Updated: 22/Feb/23  Resolved: 22/Feb/23

Status: Closed
Project: Build
Component/s: None
Affects Version/s: None
Fix Version/s: POMs 54

Type: Sub-task Priority: Neutral
Reporter: Maxime Michel Assignee: Michael Duerig
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Java Source File UpdateCopyrightYears.java    
Template:
Date of First Response:
Team: Foundation

 Description   
  • create a new repository, openrewrite-recipes
  • with a pipeline to publish them
  • include UpdateCopyrightYears.java
  • use the starter template in order to have a test setup ready as well


 Comments   
Comment by Michael Duerig [ 14/Feb/23 ]

See https://git.magnolia-cms.com/users/mduerig/repos/magnolia-rewrite-recipes/browse

Comment by Michael Duerig [ 17/Feb/23 ]

My thinking so far was:

  • Create the magnolia-rewrite-recipes repository in the BUILD project
  • Release it from there often. Potentially automatically by Jenkins (e.g. whenever a tag is pushed)
  • Leverage renovate to update rewrite.recipes.version in PPOM.

 

Comment by Michael Duerig [ 20/Feb/23 ]

Reopening to fix the test failures on Jenkins

Generated at Sun Feb 11 23:47:17 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.