META-INF/services in JAR with Gradle

后端 未结 5 1876
予麋鹿
予麋鹿 2020-12-14 07:06

I wanted to build a plugin module that can be loaded with a ServiceLoader. This requires adding a file to the META-INF/services directory, that is named after t

5条回答
  •  别那么骄傲
    2020-12-14 07:26

    Hopefully they will implement this in the jar task just like ant does. Somebody already worked on it: http://fgaliegue.blogspot.fr/2013/06/gradle-serviceloader-support.html

提交回复
热议问题