Of course. If you want to use http://docs.oracle.com/javase/6/docs/api/java/util/ServiceLoader.html and you deploy your app in a JAR, you have two options. 1) you use ant, you don’t have to create src/main/resources/META-INF/services by hand, because you can just:
So ant will generate this file into your JAR in the proper place, and thus this service provider can be invoked. 2) you use gradle, you have to create src/main/resources/META-INF/services by hand, and maintin it in the repository source tree. I hope I clarified myself. It would be nice to extend the jar task with this functionality, so this config file can be deleted and its generation can be managed with gradle.