-
Notifications
You must be signed in to change notification settings - Fork 363
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
Running the UpdateGradleWrapper
recipe for a Gradle project without wrapper should generate a functioning wrapper JAR
#4878
Comments
This is peculiar. @bmuschko, just to make sure, in your current location you are able to hit In the test bed, we have a test that handles this case including confirming that the wrapper jar itself is valid. |
Yes, I can reach
|
@shanman190 Were you able to find out about the root cause? |
@bmuschko, I haven't yet. I'm hoping to look into that this afternoon. |
Ok, after doing some testing I've found the following:
I'm pretty sure I know why the Moderne CLI is failing. |
Great, thanks for looking into this. Apart from the Moderne CLI, I am seeing the same issue on the Sass where I call this recipe from another one. The root cause may be the same. |
@bmuschko, on the SaaS I was able to successfully add the Gradle wrapper to a Gradle project that lacked the wrapper initially. https://app.moderne.io/commits/de828a2b-04e6-4768-a79c-6c7587a8890b So for me, only the Moderne CLI is failing to work correctly. |
@shanman190 I might be wrong here. That's what I thought had happened. I will try that again on my end. |
@shanman190 I wrote a test case that implements |
Thanks both! I'll log a separate issue for the CLI, but I wonder if we have the same problem when using |
@timtebeek, the answer there is yes. If you do a dryRun, then try to apply the Git patch any |
What version of OpenRewrite are you using?
How are you running OpenRewrite?
Moderne CLI
What is the smallest, simplest way to reproduce the problem?
Clone a Gradle project that does not include a checked-in wrapper.
What did you expect to see?
A functioning Gradle wrapper.
What did you see instead?
The generated wrapper JAR file has a size of zero bytes. Executing the build with the wrapper fails.
Are you interested in [contributing a fix to OpenRewrite]
Not for this one
The text was updated successfully, but these errors were encountered: