spring-boot-migrator icon indicating copy to clipboard operation
spring-boot-migrator copied to clipboard

Parse Gradle projects

Open fabapp2 opened this issue 2 years ago • 1 comments

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.

fabapp2 avatar Jul 25 '23 08:07 fabapp2

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.

fabapp2 avatar Aug 25 '23 14:08 fabapp2