Closed wsutina closed 1 week ago
The :buildHealth
failure is interesting, and I'll have to think about how to resolve it. The existing antlr support for Groovy deliberately shades antlr to work around common problems with people bringing in different versions of that tool and breaking this plugin. However, now we have KotlinEditor also bringing in antlr. ~Maybe the most straightforward answer is to shade KotlinEditor as well. Could maybe do it with the extant shadowed/antlr
project.~ 🤔 No, just checked again and that doesn't make sense. I could add a new module just for a shaded version of KotlinEditor. Or I could make the more substantial effort to add Shadow directly to the main module (but this doesn't excite me as a great idea). Or we could even add a shaded version of antlr directly to KotlinEditor -- but I think that's really a user concern and not the responsibility of KotlinEditor.
📝 Description
Updating the
RewritingTask
to use kotlin-editor, which contains an updated grammar for more complex Kotlin Gradle build scripts. The grammar used for parsing Groovy build scripts remains unchanged.Note: this depends on https://github.com/cashapp/kotlin-editor/pull/17