Building gradle plugin

I have some problems with building a gradle plugin. I posted a question on SO:

Does someone have any idea what might have gone wrong?