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
gildor
10/10/2020, 1:54 PM
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
Big Chungus
10/10/2020, 3:52 PM
Mainly autocompletion and formatting. Also structure validation to avoid missing/extra "}" or ")"
g
gildor
10/11/2020, 12:21 AM
Formatting and basic syntax validation works fine with language injection for strings