payara / Payara-Examples

Repository for Example Code to demonstrate Payara specific features
144 stars 177 forks source link

MARK-256 Added Gradle Example #84

Closed MattGill98 closed 6 years ago

MattGill98 commented 6 years ago

Gradle sample uses a Maven pom.xml to trigger the Gradle wrapper build. This way users won't need to have any idea what Gradle is in order to build the entire suite as normal.

MattGill98 commented 6 years ago

I've removed the netbeans specific files, thanks for pointing those out!

The extra files are just to allow the Gradle build to be called from Maven. You're incorrect in saying that any examples depend on each other, they simply allows the artifact to be built when running a general build of all the samples. If you're just downloading a single sample you can completely ignore the Maven files and it will work fine. If however you're viewing the whole project, as I always do, I personally find it a little bit alienating when a submodule (as the project has been setup that way) has no relation to it's parent. If you'd rather see the Maven files removed that's fine, but to be clear they only add to the sample - not altar any functionality.

MattGill98 commented 6 years ago

Thanks for the changes @OndrejM. I'm just closing this PR temporarily to take an integrate these into the blog.