openrewrite / rewrite-gradle-plugin

OpenRewrite's Gradle plugin.
Apache License 2.0
60 stars 37 forks source link

Recipes from another project aren't built automatically #176

Closed sambsnyd closed 1 year ago

sambsnyd commented 1 year ago

Assume a multi project build where one project builds some recipes, and another project wants to run those recipes.

// in build.gradle(.kts) of project running recipes
rewrite {
  activeRecipe("com.myorg.SomeRecipe")
}

dependencies {
  rewrite(project(":containsSomeRecipe")
}

We don't automatically add an appropriate task dependency between the rewrite tasks and the task in the other project which would produce the jars. This can result in those jars being unavailable or out of date when the rewrite tasks run