Skip to content

Parse Gradle projects #849

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Tracked by #844
fabapp2 opened this issue Jul 25, 2023 · 1 comment · Fixed by #874
Open
Tracked by #844

Parse Gradle projects #849

fabapp2 opened this issue Jul 25, 2023 · 1 comment · Fixed by #874
Assignees
Labels
in: sbm-support-rewrite Issue is related to the sbm-support-rewrite compionent spike

Comments

@fabapp2
Copy link
Contributor

fabapp2 commented Jul 25, 2023

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 fabapp2 added spike in: sbm-support-rewrite Issue is related to the sbm-support-rewrite compionent labels Jul 25, 2023
@fabapp2 fabapp2 linked a pull request Aug 25, 2023 that will close this issue
@fabapp2 fabapp2 reopened this Aug 25, 2023
@fabapp2
Copy link
Contributor Author

fabapp2 commented Aug 25, 2023

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 fabapp2 linked a pull request Nov 12, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: sbm-support-rewrite Issue is related to the sbm-support-rewrite compionent spike
Projects
None yet
2 participants