Make architecture independent and update gradle support

Hard-code architecture independence to match the author's intention to support only Java packages.

Add various missing Gradle methods so this runs clean on recent gradle versions.

PS. Thanks for this plugin: it was a great help.
PPS. By adding a buildSrc submodule containing this plugin, I could use it without adding a dependency and publishing to a maven repo. You may care to mention that approach in the README.