MULE-8168: Gradle build scripts that can run side by side with maven.

Tests fixed to work in a gradle build (different build folder and resource paths in different folders)