Fix issue #1

This pull request fixes the problem detailed in issue #1.

The error occurred because the OneJar task returned a degenerated `PublishArtifact` object which lacked the `buildDependencies` field. By creating a proper `PublishArtifact` all needed fields are available.