Work around for jetty in gradle based on solutions proposed in http://issues.gradle.org/browse/GRADLE-1956