I've created a simple groovy-based plugin for gradle.
in my gradle.build file I have the following:
apply plugin: 'groovy'
dependencies {
compile gradleApi()
compile localGroovy()
}
Everything works great, I get a build directory and a .jar is generated in the lib folder, I guess this is the standalone plugin.
Now I want to know how to register this new plugin into my gradle instalation, so I can do
apply plugin: 'myPlugin' I've done the following:
- Droped the plugin into the plugin folder in the installation
- Created the myplugin.properties file and included it in the META-INF folder
- placed the same properties file in the META-INF in the src dir (act of desperation)
Well after every step when I try to apply the plugin I get the error:
- Plugin with id 'myplugin' not found
How can I get this right??
can you state a list of steps that will get my plugin working? (Im new to gradle+groovy)
Thanks for the help
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…