[GRADLE-2001] Custom plugin jar META-INF/gradle-plugins properties file not found Error Created: 13/Dec/11 Updated: 04/Jan/13 Resolved: 07/Mar/12 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | None |
Fix Version/s: | 1.0-rc-1 |
Type: | Bug | ||
Reporter: | Gradle Forums | Assignee: | Luke Daley |
Resolution: | Fixed | Votes: | 0 |
Description |
I'm creating a custom plugin. Following the docs I have created the class, add the META-INF/gradle-plugins .properties file, built and installed to my local .m2 repo. //apply plugin: 'spindrift-gradle-plugins' but when executing the build it throws: FAILURE: Build failed with an exception.
But when I unjar that snapshot it exists correctly. The path to the snapshot is valid and the path to the .properties is valid. Any ideas why it can't see/access the file - permissions are not a problem I think. |
Comments |
Comment by Gradle Forums [ 13/Dec/11 ] |
I suspect a typo in the path To avoid plugin id resolving and move forward you can apply plugin by class: apply plugin: com.foo.bar.MyPlugin Hope that helps! |
Comment by Gradle Forums [ 13/Dec/11 ] |
No typo Problem is resolved. Some more digging led me to a bug in JDK1.4 |
Comment by Gradle Forums [ 13/Dec/11 ] |
Just to be clear I'm not using 1.4 its just similar behaviour ... |
Comment by Gradle Forums [ 13/Dec/11 ] |
I had a similar problem as you with the same error message. Took me a while to track it down, but in my case it was the gradle daemon that was the problem. Killing and restarting the daemon resolved the issue. What seems to be happening is that the daemon has the class loaded, but if the original file changes, the daemon gets all confused. |
Comment by Gradle Forums [ 13/Dec/11 ] |
Hi Warren, Can you please confirm that you are using the Gradle daemon. If so, then I'm pretty sure that the JDK issue you found is the culprit. If this is the case I think we can workaround this in Gradle. |
Comment by Gradle Forums [ 13/Dec/11 ] |
Hi Luke, |