Ranting and Raving

Gradle 2.5 — with WildFly 9.0.0.Final and IntelliJ 14

In my current project I’m using IntelliJ, Gradle and WildFly. I’m relatively new to each of these products only having used each of them for a couple of months. But, as the project is still Java EE 7 the learning curve is more with the tools and application server than with the standard.

Now that I’ve had a little cockpit time I’m quite comfortable with WildFly and getting more comfortable with Gradle all the time. I will admit it’s taken me a while but I’m finally starting to get used to the jump from Maven and (my beloved) Ant.

IntelliJ is quite good but I think NetBeans is still my first choice. I’ve done a lot of coding on NetBeans using GlassFish and they are a solid combination. While there are plugins I would very much like to see Gradle become more highly integrated into NetBeans.

So, in the hope of helping someone else get started I’m laying out 3 items in this post.

1. The directory structure for my project (pretty standard but maybe not obvious to new users)2. My gradle.properties file just for the heck of it3. Key parts of my build.gradle file

I do not use a gradle wrapper. Though, I do see where a gradle wrapper would be a benefit. IntelliJ does an amazing job of importing and syncing with Gradle!! A big plus making the wrapper even less important.

(1)
The directory structure for my project is a pretty standard and is probably familiar to those of you that use Maven.

(2)
I don't use any of Gradle's advanced features. If my dev machine was a bit slower I probably would. Even without the 'daemon' and 'parallel' features it's pretty darn fast. Just set those two options to 'true' if you want to try them out.

// Setup Project dependencies
// Notice that my org.wildfly dependencies are 'providedCompile' as I use the Full version of
// Wildfly-9.0.0.Final which seems to include everything plus the kitchen sink
// There is lot's of good stuff in wildfly-feature-pack
dependencies {