We are using the ear plugin with a custom application.xml. Over the past couple days we have had a number of build failures as the dtd that our xml references links to a url that has been going up and down. We were unaware that gradle would contact this website while configuring itself.
Looking at the ear plugin code, I don’t see an obvious way of disabling this behavior. We’d prefer to not have any xml validation be performed by gradle.
I have created a sample project here : https://github.com/petehayes/ear-xml-validation
I changed the dtd reference to point to a bad host name and if you run ./gradlew tasks, gradle errors out with an unknown host exception.