Package OpenRewrite recipes as jar - #1060
ErhardSiegl wants to merge 1 commit into
Conversation
|
Thanks for this @ErhardSiegl - this is a really good idea and I'll have a think about whether it's best to create the jar or just move the recipes to META-INF/rewrite. Does openrewrite automatically parse any yaml files under there? Or do they have to be named Ah, I think I get it - Does what you suggest here do it by maintaining the existing directory structure under META-INF/rewrite and openrewrite picks up all |
|
The files don't have to be named |
This is a contribution to https://issues.redhat.com/browse/WINDUPRULE-1046
It enables to use the following plugin configuration in
pom.xmland then e.g:
The code is taken from https://github.com/quarkusio/quarkus-updates/blob/main/recipes/pom.xml and https://github.com/quarkusio/quarkus-updates/blob/main/recipes/src/main/assembly/core.xml
This is meant as proof of concept and does not fix WINDUPRULE-1046
One problem is, that
windup-cli --openrewriteuses-Drewrite.recipeArtifactCoordinatesbut this option apparently doesn't understand maven classifiers.Also it might not be the best solution to generate a separate artifact instead of just moving the
rewrite.ymlfiles toMETA-INF/rewrite. However that would have more impact, while this change is compatible with older versions.