I created a simple groovy plugin for gradle.
in my gradle.build file, I have the following:
apply plugin: 'groovy' dependencies { compile gradleApi() compile localGroovy() }
Everything works fine, I get the assembly directory, and .jar is generated in the lib folder, I think this is a standalone plugin.
Now I want to know how to register this new plugin in my gradle installation, so I can do the plugin application: 'myPlugin' I did the following:
- Threw the plugin into the plugin folder during installation
- Created the myplugin.properties file and included it in the META-INF folder
- put the same properties file in META-INF in src dir (desperation action)
Well, after each step, when I try to apply the plugin, I get an error:
- Plugin with id 'myplugin' not found
How can I get it right?
can you provide a list of steps that will make my plugin work? (Im new for gradle + groovy)
thanks for the help
RicardoE
source share