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
With the switch to the 7.+ version, in one of our projects we're having some issues with the undesired processing of the Gradle build file, as there are functions and OpenRewrites adds val in the functions, messing up the file.
This is now the task is configured in the Gradle build file:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
With the switch to the 7.+ version, in one of our projects we're having some issues with the undesired processing of the Gradle build file, as there are functions and OpenRewrites adds
val
in the functions, messing up the file.This is now the task is configured in the Gradle build file:
And this is what it does into the build file:
Of course, this breaks the build as it's breaking the syntax...
I have tried adding exclusions following all the suggestions found online and with AI, which are:
filter { excludeFile("**/*.kts") }
plainTextMasks
in the DSLtasks.withType<RunRewriteTask>().configureEach { exclude("**/*.kts") }
(properly indented)rewrite.yml
filesourceSet
Most of them don't compile because of unresolved references...
I ran out of options, so this is the last place where I have hopes to find an answer.
Beta Was this translation helpful? Give feedback.
All reactions