Add OpenRewrite recipe to migrate Querydsl to fluentQ#1817
Merged
Conversation
…l to fluentQ Signed-off-by: Marvin Froeder <velo.br@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a published OpenRewrite recipe so downstream projects can migrate from Querydsl to fluentQ automatically.
New module
fluentq-tooling/fluentq-rewrite→io.github.openfeign.fluentq:fluentq-rewrite, shipping the declarative recipeio.github.openfeign.fluentq.rewrite.MigrateQuerydslToFluentQ:com.querydsl.*andio.github.openfeign.querydsl.*→fluentq.*.io.github.openfeign.fluentq,querydsl-*→fluentq-*, version8.0(dependencies,dependencyManagement, andquerydsl-bom→fluentq-bom).querydsl-maven-plugin→fluentq-maven-plugin.Works for both the original Querydsl (
com.querydsl) and the OpenFeign fork (io.github.openfeign.querydsl).Tests
MigrateQuerydslToFluentQTest(org.openrewrite.test.RewriteTest):pom.xmlcoordinate cases —@Disableduntil fluentQ8.0is published to Maven Central (OpenRewrite resolves the new GAV and 404s on the unreleased artifact; they pass once it's released).Docs
docs/guides/openrewrite-recipe.md— Maven and Gradle usage, limitations (hardcoded APT processor class, dropped modules, review/rebuild), and a roadmap for future recipes (Mysema/Querydsl 3, jOOQ, Hibernate Criteria).docs/migration-8.md— adds an "Automated Migration with OpenRewrite" pointer.Notes / decisions
FindAndReplacewas intentionally not used for the APT processor-class string (it's a no-op on XML poms) — documented as a manual step instead.org.openrewrite.recipe:rewrite-recipe-bom:3.33.0(core 8.85);rewrite-java-25added to match the project's JDK 25 test toolchain; type validation disabled in the test since Querydsl isn't on the test classpath.src/main/java), so the compat-wrapper generator skips it and noquerydsl-rewritewrapper is produced. When imperative recipes are added later, addfluentq-rewriteto the generator's skip set.Verification
./mvnw -Pdev install(full reactor) → BUILD SUCCESS; the module builds, the recipe YAML parses, the active test passes, format validation passes, and it installs/joins the generated BOM cleanly.🤖 Generated with Claude Code