Handling differences in the classpath order between running from Eclipse and running a deployed Gradle build

No, my app is not a plugin, it’s a regular Java web application, using Apache Tapestry.