Restructured for Gradle Building and EAR configuration