Create proper PublishArtifact, fixes #1
Merge pull request #2 from smarchive/fix-issue-1

Fix issue #1

I just ran some more tests on it and that does appear to fix things for artifact publishing.  I do wonder how stable the Gradle core code will remain coming out of the org.gradle.api.internal.* packages, but other than that, it looks pretty solid.