Verify compilation of changes made earlier in the same run
ProprietaryRecompile the source files that earlier recipes in this same recipe run changed, and mark the elements that no longer compile. This recipe examines only files carrying a RecipesThatMadeChanges marker, so running it on its own reports nothing at all, no matter how badly broken the code in the repository is. It is a verification step for a migration, not a standalone compiler. Compose it after the recipe whose output you want to verify:
type: specs.openrewrite.org/v1beta/recipe
name: com.yourorg.MigrateAndVerify
displayName: Migrate and verify
description: Rename a method and verify that the result still compiles.
recipeList:
- org.openrewrite.java.ChangeMethodName:
methodPattern: java.util.List add(..)
newMethodName: plus
- io.moderne.compiled.verification.VerifyCompilationFailures appear as inline warnings on the offending elements, so a run that produces no warnings either verified everything successfully or had nothing to verify.
io. moderne. compiled. verification. VerifyCompilationOptional
Trace the ABIs of dependencies of files being verified.
mod run . --recipe= io. moderne. compiled. verification. VerifyCompilationInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.