Fix snippets in MavenPublication so that they configure artifacts and not tasks