Replies: 1 comment
-
|
Hi, systemProperties = System.properties as Map<String, ?> -> systemProperties = System.propertiesasMap<String, ?> I cannot find a way to exclude files from being changed. I tried the one from the manual: rewrite { But that did not work. I asked several AIs, but none of the "ideas" they came up with worked. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
valin 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") }plainTextMasksin the DSLtasks.withType<RunRewriteTask>().configureEach { exclude("**/*.kts") }(properly indented)rewrite.ymlfilesourceSetMost 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