Skip to content

Bump the version of the recipes jar used and find a better way to handle it #193

@cmoulliard

Description

@cmoulliard

TODO

Bump the version of the recipes used within the project like to find a better way to consume it: pom version, property, etc

OpenRewriteQueryScanner class

public class OpenRewriteQueryScanner implements QueryScanner {
...
		// Recipe's jar files
		String gavs = "org.openrewrite:rewrite-java:8.71.0,"
				+ "org.openrewrite.recipe:rewrite-java-dependencies:1.49.0,"
				+ "dev.snowdrop.mtool:openrewrite-recipes:1.0.5";

and

OpenRewriteQueryScanner

class MatchServiceCookBookTest extends BaseRulesTest {
...
		// OpenRewrite Instructions
		Rule.Openrewrite[] openrewriteInstructions = new Rule.Openrewrite[]{new Rule.Openrewrite(
				"Replace the SpringBoot parent dependency with Quarkus BOM within the pom.xml file",
				"Replace the SpringBoot parent dependency with Quarkus BOM within the pom.xml file.", null, // preconditions
				null, // recipeList (aquí podrías añadir los recipes si los necesitas)
				new String[]{"dev.snowdrop.mtool:openrewrite-recipes:1.0.0-SNAPSHOT",
						"org.openrewrite:rewrite-maven:8.62.4"})};
...

Idem too for the rewrite-java and rewrite-java-dependencies jar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions