<@U03FP6RKVJS> Do you have any suggestion for the ...
# gsoc-2025-improving-cc
n
@Rafael Chaves Do you have any suggestion for the next plugin?
and this : https://github.com/openrewrite/rewrite-build-gradle-plugin I believe it breaks but there is no issue
o
+1 from me. If this is fixed, it will help the ecosystem quite a lot
Personally i do not have a particular use-case of why I would want to trigger OpenRewrite as a Gradle task, but it clearly got some traction. Might be useful for those who use Gradle as a CLI entrypoint for all kinds automation, and maybe some minor automatic refactorings (e.g. adding
@since
to Javadoc as a part of the release flow)
r
One thing against OpenRewrite is that it is developed by a well funded company, so community contributions are not as important. However, since it seems to be paused since February, a fix from the community may be well received.
Nouran, in case it was not clear, considering the issue has been paused for 6 months, I think it is worthwhile trying it out.
I did use the Rewrite Plugin myself, so should be in a good position to help you with any questions about usage that you may have.
But I have no idea on how broken/fixable it is
o
Me neither. ""Take 2" provides some hope that a significant part is fixed, but I am not 100% sure
👍 1
n
I added a cc test that applying the reproducer task that mentioned in the issue , and that was breaking , I don’t think it is easy to be fixed it , but maybe I will try https://github.com/Nouran-11/rewrite-gradle-plugin/blob/4c6b62c8535d9fc6161b0ae5b141843e0e1784c5/plugin/src/main/java/org/openrewrite/gradle/RewriteDryRunTask.java#L52
o
FWIW even a test is a valid contribution - it can be Skipped for now but, whomever takers it further, can re-enabke the test and finish the implementation
👍 1
r
Do you have an actual output of Gradle reporting CC violations?
n
Sorry , I don’t understand what do you mean
2 problems were found storing the configuration cache. - Task
:rewriteDryRun
of type `org.openrewrite.gradle.RewriteDryRunTask`: cannot serialize object of type 'org.gradle.api.internal.project.DefaultProject', a subtype of 'org.gradle.api.Project', as these are not supported with the configuration cache. See https://docs.gradle.org/8.14.3/userguide/configuration_cache.html#config_cache:requirements:disallowed_types - Task
:rewriteDryRun
of type `org.openrewrite.gradle.RewriteDryRunTask`: invocation of 'Task.project' at execution time is unsupported.
from my cc test
@Rafael Chaves what do you think?
r
Running the tests now - thanks for adding the CC test
Could you please explain your testing strategy? Why to you have other tasks depending on
rewriteDryRun
?
n
I just use the reproducer example in the issue
r
Ah, I see
I think it can be simplified, but no need to focus on that now
👍 1