You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If any unit tests changes were made, tasks.withType would appear in build.gradle
What did you see instead?
This change was made in settings.gradle which prevented me from building the project until it was removed.
Here's an example of an older run where this change was only made in one build.gradle DovOps/traderX@0474421
Compare that to this change, which made the undesired changes to settings.gradle DovOps/traderX@109320d
What is the full stack trace of any errors you encountered?
n/a
Are you interested in [contributing a fix to OpenRewrite]
Happy to contribute. Unsure if this is something wrong with my setup, or something strange happening in the recipe; At first glance I could not see a change where this was introduced, though I know this has not happened in the past.
The text was updated successfully, but these errors were encountered:
I do notice the recipe does not use any preconditions just yet, whereas it might make sense to use IsBuildGradle there. 🤔 We'll look into this on our end as well!
Added the precondition and from my local tests that indeed fixes the issue; I'll redeploy the recipe jar to fix it on app.moderne.io as well. Thanks again for raising the issue, and all the best heading into the new year!
What version of OpenRewrite are you using?
Ran with the latest version of rewrite-spring deployed to the app tenant of Moderne.
5.26.0 (snapshot shown below)
How are you running OpenRewrite?
Ran moderne on an open source project, and it produced the following commit:
finos/traderX@109320d
This appears to have put the tasks.withType(Test) directives into
settings.gradle
when that file usually does not have access to tasks.What is the smallest, simplest way to reproduce the problem?
Run this recipe on the https://github.com/finos/traderX repo in the app tenant.
What did you expect to see?
If any unit tests changes were made,
tasks.withType
would appear in build.gradleWhat did you see instead?
This change was made in
settings.gradle
which prevented me from building the project until it was removed.Here's an example of an older run where this change was only made in one build.gradle
DovOps/traderX@0474421
Compare that to this change, which made the undesired changes to settings.gradle
DovOps/traderX@109320d
What is the full stack trace of any errors you encountered?
n/a
Are you interested in [contributing a fix to OpenRewrite]
Happy to contribute. Unsure if this is something wrong with my setup, or something strange happening in the recipe; At first glance I could not see a change where this was introduced, though I know this has not happened in the past.
The text was updated successfully, but these errors were encountered: