spring-boot-migrator
spring-boot-migrator copied to clipboard
Parse Gradle projects
Explore ways to parse a Gradle project to OpenRewrite's AST.
Ideally the same API (RewriteProjectParser) can be used by clients to parse Maven and Gradle projects transparently.
I spiked using the original DefaultProjectParser by creating an inline org.gradle.api.Project and implementing the called methods so that they return the data provide through GradleProjectData. But the JavaCompile class can't be created using new without using Gradle API or DSL (or maybe some crazy hackery). '
This is blocking this approach.