Polish
Revert "Add @Conditional to prevent HATEOAS blowing up"

This reverts commit e6e890777040620d4e259fb79d1c56af6d1f3c71
which has an incorrect commit message.
Grab main class from "run" task if it exists

Fixes gh-1099
Implement simpler exclusion logic for Gradle

Simplify the exclusion logic used in Gradle by implementing implicit
exclusions rather than trying to detect transitive excludes.

This commit reverts much of the code originally included to fix gh-1047
which adds far too much complexity to the build and still doesn't solve
the underlying issue.

Fixes gh-1103