First Plugin Pains

Writing my first plugin. Questions:

What is the relevance of the properties file name? What does it map to exactly?
src/main/resources/META-INF/gradle-plugins/funkychicken.properties

Same question regarding the contents:

implementation-class=com.build.WierdoPlugin

As far as I understand it, ‘funckychicken’[.properties] is the name of your plugin, that’s used in the build script apply statement, apply plugin: ‘funkychicken’

com.build.WierdoPlugin is the class implementing the Plugin interface

I’d recommend reading the user guide on this topic.

The user guide isn’t very good for people who don’t already know Groovy.
Ironically, Gradle is often the reason people learn Groovy.

I don’t necessarily want to market my book “Gradle in Action” here but it contains an introduction chapter on Groovy as well.

1 Like

I already have it on Kindle. Haven’t opened it in a while though. Will have a look.

This caveat caught me at first as well. I agree it’s in the User Guide, which I read, but it took many, many forum and blog reads before I finally connected all the dots.