Correct the build instructions for the templates.

The build information for packaging and publishing the included templates was out
of date, so I've updated it for latest Gradle tasks and rules.