How to generate "" for plugin? For example

(Yong Cheng) #1

Hi there,

Just found out inside any gradle plugin jar , there is * file, what is this file used for , and how to generate it?

Inside, the content is:

#module definition
#Tue Sep 24 09:37:21 CEST 2013

Thanks in advance Yong

(Peter Niederwieser) #2

It’s part of Gradle’s internal class loading mechanism. Third-party plugin don’t need such a file.

(Yong Cheng) #3

I got one reason to curious about this. I wrote one plugin that have over dozen of dependencies, but I don’t want to re-config those same dependencies in my project( the consumer of the plugin), any way you could advice to eliminate these extra dependencies injection?

(Peter Niederwieser) #4

If you publish the plugin to a Maven or Ivy repository, transitive dependency resolution will take care of the rest.