I’m sorry but I might deprecate this and close the topic for now.
While less powerful in terms of customisations, our preferred way to kickstart a plugin now is to use GitHub - discourse/discourse-plugin-skeleton: Template for Discourse plugins as a template (see the green button USE THIS TEMPLATE).
It’s much easier for us to keep this up to date.