Skip to content

Log Recipe names if recipe validation error occurs #382

Open
@danish-kamal-sophos

Description

@danish-kamal-sophos

What problem are you trying to solve?

Log Recipe names if recipe validation error occirs

Describe the solution you'd like

Recipe validation errors that are logged upon recipe activation:

Recipe validation error in newGroupId: is required
Recipe validation error in newArtifactId: is required
Recipe validation error in coordinates: newGroupId OR newArtifactId must be different from before
Recipe validation error in newGroupId: is required
Recipe validation error in newArtifactId: is required
Recipe validation error in coordinates: newGroupId OR newArtifactId must be different from before
Recipe validation error in newGroupId: is required
Recipe validation error in newArtifactId: is required
Recipe validation error in coordinates: newGroupId OR newArtifactId must be different from before
Recipe validation error in newGroupId: is required
Recipe validation error in newArtifactId: is required
Recipe validation error in coordinates: newGroupId OR newArtifactId must be different from before
Recipe validation errors detected as part of one or more activeRecipe(s). Execution will continue regardless.

do not contain the recipe name. It would be nice to log recipe name to make debugging and fix easier.

Have you considered any alternatives or workarounds?

Tried debug/info logging but seems there is no additional logging.

Additional context

Message is logged from DefaultProjectParseer.java here: https://github.com/openrewrite/rewrite-gradle-plugin/blob/main/plugin/src/main/java/org/openrewrite/gradle/isolated/DefaultProjectParser.java#L1381

Are you interested in contributing this feature to OpenRewrite?

Yes!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions