Dear gradle plugin authors. While working on my np...
# announcements
b
Dear gradle plugin authors. While working on my npm-publish plugin I've discovered how painful it is to write gradle files for functional tests efficiently. So I've written a single-file DSL for you to drop-in to you projects that puts at least some formatting/validation on gradle buildscript generation. It could be used for any kotlin file generation as well. Here's a snippet and I'm looking forward to hearing your thoughts!
👍 1
g
Hmm, not quite sure what is advantage comparing to just a string with file content, it can be more dynamic, but does it really need for tests?
b
Mainly autocompletion and formatting. Also structure validation to avoid missing/extra "}" or ")"
g
Formatting and basic syntax validation works fine with language injection for strings
b
Wait what? How do i do that??
b
Man, wish i knew that beforehand 😀